i tested a bit around and the problem is a little more delicate, than expected...
the custom action runs on x64, but it tries to write a file to "C:\Program Files\XXX" using standart c# file functions. Under Windows 7 the written file does not land in the expected folder (C:\Program Files\XXXX ...
i have a custom action dll (Wix3.0) running only on "Install" and "Maintenance" currently added in "Files and Folders" under APPDIR.
Is there a way to prevent the dll from beeing installed into APPDIR. The installer also creates an additional folder "CustomAction.CA.dll-" which prevents the ...
i was not aware of "AI_ProgramFiles" that works just fine! i now can sucessfully build x86 and x64 packages.
regarding my initial question, i still search for a way to have only one msi for both platforms. the "AI_ProgramFiles" is not avaiable under the "32-bit package" type right (i ...
i just tried to install the x64.msi on a Win 7 machine. There seems to be another problem. It will install to "Program Files (x86)" an not to "Program Files" as expected. Schould [ProgramFilesFolder] not resolve to "Program Files" on Win 7? Or can i do something wrong here?
thank you for helping. I tried this already but it gives me two msi´s one for 32 and one for 64-bit. The problem is, i need one msi that contains both and decides during install on the target machine, which platform to use. The build creates 4 files:
when i set the package type to "Mixed 64/32 matching the Platform" i cannot build to plain .msi target. It forces me to build to an exe setup without CAB inside. This is a problem since we must deploy installations trough an windows-update server, that can handle only *.msi packages.
yes, i tried this version too with the same result. i expected, that the parameters are splitted at the whitespaces like in windows console mode, thats why i posted the more related version "/appdir=[APPDIR]" but /appdir="[APPDIR]" yields to the same result ...
the problem is, that the /appdir="[APPDIR]" is handed over to the custom action with an ending string quote (as in my example is /appdir=c:\Program Files\MyApp").