Re: [WiX-users] Copy folder structure

2009-08-26 Thread Sebastian Brand (Instyler Software)
You can suppress harvesting that using the -sreg argument in heat.exe. Sample: heat dir c:\folder\with\files -out dynamic.wxs -ag -sreg -ag sets to component guid to * to have them autogenerated during compile time. Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI

[WiX-users] How to add a dialog box when uninstall

2009-08-26 Thread little.forest
Hi, We're using WiX 3.0. How to add a dialog box when uninstall? We'd like to ask the end user if they want to delete their settings files in AppData\Company\Product folder. If the answer is Yes, then we'll need to delete that folder. And we only want this dialog box showing up when manually

Re: [WiX-users] How to add a dialog box when uninstall

2009-08-26 Thread Sebastian Brand (Instyler Software)
Hello, Windows Installer executes uninstall in Silent mode (no UI) mode only. To show a dialog, you'll have to create a custom action to show a dialog, then schedule that during uninstall. Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI installations, elegantly.

Re: [WiX-users] Major Upgrade: How to do major upgrade for the currect product and a previous product?

2009-08-26 Thread little.forest
Thanks for your reply, Blair. I see what you mean - keep the upgrade code unchanged for one product. But I have a feeling that we can upgrade other products - as long as we add the upgrade codes in the upgrade table. That means we could have a few different upgrade entries in the upgrade

Re: [WiX-users] Copy folder structure

2009-08-26 Thread Jaspreet Nabha
Thanks Brand, It it generationg the WXS w/ any error, But every components is enclosed with fragmment tag. It would be great if you can give some sample which simply put the folder structure on user machine. For your reference I am using the below said WXS file, which put a file to user

[WiX-users] Size of the RAM in WIX

2009-08-26 Thread Sunkesula, Srivardhan
Hi, Can anyone help in finding out the size of the RAM in wix? I was trying to use PhysicalMemory attribute in wix. But didn't work out. If anyone can help in usage of this attribute, it would be great. Thanks Regards, Srivardhan.

[WiX-users] Wix Source Query

2009-08-26 Thread Sean Farrow
Hi: I was browsing the wix source, as I'm trying to write an extension to integrate with another development environment. I was particularly interested in the .net extension as it seems to use a custom action dll. What I carn't seem to find though looking at the projects is where this ca dll is

Re: [WiX-users] Copy folder structure

2009-08-26 Thread Sebastiaan Deckers
I'm new to WiX but this is how I solved the problem of packaging hundreds of files in a directory: http://github.com/pandion/pandion/tree/master/Installer/WiX Heat will generate a huge WXS file that is then compiled and linked together with the rest of the setup as an argument to candle and

Re: [WiX-users] Locate a file within a manged custom action in win2k8 x64

2009-08-26 Thread tgoffice
Manipulation of files within my target installation path are working, but they don't work in windows directory. I have played with impersonating without success. CustomAction Id=UpdateConfiguration Impersonate=yes BinaryKey=TestCA.CustomActions DllEntry=UpdateConfiguration

Re: [WiX-users] Size of the RAM in WIX

2009-08-26 Thread Sebastian Brand (Instyler Software)
PhysicalMemory returns the size of RAM in MB. This should work. Where are you using this property? Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -Original Message- From: Sunkesula, Srivardhan

Re: [WiX-users] How to stop running an MSI directly instead

2009-08-26 Thread Prabhakaran Paulraj
I made the conditional message as below Condition Message='Please run the Setup.exe First'NOT Installed OR MYINSTALLKEY/Condition I run the Install.msi using the following command msiexec /i Install.msi MYINSTALLKEY=1 Observered Result: 1. I dont get a conditional message when i directly

[WiX-users] Cancel from Embedded UI within the ProcessMessage() method doesn't always work

2009-08-26 Thread CristianG
Hi, I'm using the Embedded UI feature (thanks DTF) from Windows Installer 4.5 and noticed that the installation is not always canceled when returning MessageResult.Cancel from the: public MessageResult ProcessMessage(InstallMessage messageType, Record messageRecord, MessageBoxButtons buttons,

Re: [WiX-users] Dynamic Property Values vs. Multiple Components

2009-08-26 Thread Blair
?foreach...? statements provide for the creation of multiple sets of elements within the wix file itself. It is ?if...? constructs that suggest (but don't necessarily require) multiple MSIs. What I suggested is a way to manage the creation of sets of multiple components and properties that differ

[WiX-users] util:xmlfile writing the entire xml to a single line

2009-08-26 Thread Ben Hegarty
Hi, Does anyone know why if we have a whole hunk of xml to write and we do so using the util:xmlfile it all gets output into the xml file as a single line? Regards Ben -- Let Crystal Reports handle the reporting - Free

Re: [WiX-users] Wix Source Query

2009-08-26 Thread Blair
In the case of WiX v3's NetFx extension, the source is basically here (from the base directory of the sources): src\ext\NetFxExtension In that folder, the C++ CA DLL is built in the ca folder, the WiX library used by light is built in the wixlib folder, and the extension DLL that embeds the

Re: [WiX-users] How to stop running an MSI directly instead

2009-08-26 Thread Blair
This week has been a crazy week for me. Sorry. I must have suffered a brain fart. Condition Message='Please run the Setup.exe First'Installed OR MYINSTALLKEY/Condition Drop the NOT. Here is the rational: On initial installation, you want to require MYINSTALLKEY (as a proxy for detecting the

Re: [WiX-users] Cancel from Embedded UI within the ProcessMessage() method doesn't always work

2009-08-26 Thread Blair
We observed that ourselves. Basically if Windows Installer thinks that it has gone too far and it isn't reasonable/possible to cancel it ignores that request. Internally it is a multi-threaded/multi-process system and it is possible that the signal internally doesn't route fast enough, but I don't

[WiX-users] Add to Existing ProgramsMenu Folder

2009-08-26 Thread Richard Hallett
Hi, I need to add a Start Menu shortcut to an existing folder within the ProgramsMenu instead of creating a new Folder within the ProgramsMenu. For example say there is a folder called FooBar already existing within The ProgramsMenu and I want to create a sub folder SpamEggs within it. My

Re: [WiX-users] Add to Existing ProgramsMenu Folder

2009-08-26 Thread Alexander Shevchuk (Volt)
RemoveFolder will delete only empty folders. If your shortcut is not the last in the FooBarProgramsFolder, it won't be deleted on your product uninstall. Alex -Original Message- From: Richard Hallett [mailto:richard.hall...@eduserv.org.uk] Sent: Wednesday, August 26, 2009 9:03 AM

Re: [WiX-users] How to add a dialog box when uninstall

2009-08-26 Thread little.forest
Thanks Sebastian. Is there any source code example that shows how to do it? Also, how can we make sure this dialog box only pops up when the end user doing manual uninstallation? When the end user doing major upgrade to a newer version, this dialog box shouldn't popup because the end user will

Re: [WiX-users] Major Upgrade: How to do major upgrade for the currect product and a previous product?

2009-08-26 Thread little.forest
Hello WiX experts, I'd put this question another way: when doing major upgrade, we MUST put ONE upgrade ID in the upgrade section, is this correct or not? It is impossible to put more than one upgrade ID in upgrade table, correct or not? Thanks in advance. Your response is very appreciated.

Re: [WiX-users] Add to Existing ProgramsMenu Folder

2009-08-26 Thread Richard Hallett
The problem is though you can only specify a RemoveFolder for the other directory within a component. I create shortcuts within a component underneath a DirectoryRef to SpamEggsProgramsFolder I can't put a RemoveFolder id=FooBarProgramsFolder within that component because it will still

Re: [WiX-users] How to add a dialog box when uninstall

2009-08-26 Thread little.forest
Help please! I need to finish this task by tomorrow. If I can't make it, I might be fired. My job as a Wix developer may be ended. Please help: I just need to add a dialog box when install to ask if the end user wants to remove the settings data in user's AppData folder. If yes, I then will

Re: [WiX-users] How to add a dialog box when uninstall

2009-08-26 Thread Blair
The shell (ARP/Programs and Features) always calls MSI in a mode that allows a progress bar but disallows any and all modal dialogs when the Uninstall is selected. You can suppress the Remove button (ARPNOREMOVE property) which will create a Change/Remove button in its place where you can show a

Re: [WiX-users] Major Upgrade: How to do major upgrade for the currect product and a previous product?

2009-08-26 Thread Blair
You can put as many UpgradeCodes in the Upgrade table as you need. You can also take a gun and shoot yourself in the foot. -Original Message- From: little.forest [mailto:little.for...@ymail.com] Sent: Wednesday, August 26, 2009 10:15 AM To: General discussion for Windows Installer XML

Re: [WiX-users] Add to Existing ProgramsMenu Folder

2009-08-26 Thread Blair
IIRC any component can put a RemoveFolder to any folder and have it found by the ICE. Are you sure your Component was linked in? -Original Message- From: Richard Hallett [mailto:richard.hall...@eduserv.org.uk] Sent: Wednesday, August 26, 2009 1:53 PM To: General discussion for Windows

Re: [WiX-users] Major Upgrade: How to do major upgrade for the currect product and a previous product?

2009-08-26 Thread little.forest
Thanks Blair. You said You can put as many UpgradeCodes in the Upgrade table as you need. - does it mean it's possible to upgrade multiple products whose upgrade ID are different? Is there any code example showing how to do this? Thanks a lot! From: Blair

[WiX-users] WiX .5.0821.0 == Awesome!

2009-08-26 Thread John H. Bergman (XPedient Technologies)
I am finally able to build my installers with VS2010! There are still a few workaround I have had to employ, but this is a much better release for us than the last couple!! One such workaround is that the ProjectDir appears to be mapped to the TargetDir now, is this intentional, or is this a