Hi I have an issue when uninstalling my application if the operating system is not installed on the C-drive. It reports this error in the event viewer:
Product: MyProduct -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: Unregister, location: C:\windows\regedit.exe, command: /s "M:\Program Files\MyCompany\MyProduct\unregister.reg" The operating system is installed on M: and I would then assume that env.WinDir or env.SystemRoot would return M:\Windows. But it still tries to run it from the c-drive. This is taken from my wxs-file: <!-- Regedit property --> <Property Id="REGEDIT">$(env.WinDir)\regedit.exe</Property> I have also tried: <Property Id="REGEDIT">$(env.SystemRoot)\regedit.exe</Property> . . . <!-- Custom actions --> <!-- Uninstall custom action: running unregister script --> <CustomAction Id="Unregister" Property="REGEDIT" ExeCommand="/s "[INSTALLDIR]unregister.reg""/> Is this a known issue? Should I instead include all the commands in unregister.reg in the wxs-file somehow? I'm quite new to WiX, so in case could anyone give me a couple of pointers on how to do that? Thanks for any help. With regards Svein Dybvik This email originates from Steria AS, Biskop Gunnerus' gate 14a, N-0051 OSLO, http://www.steria.no. This email and any attachments may contain confidential/intellectual property/copyright information and is only for the use of the addressee(s). You are prohibited from copying, forwarding, disclosing, saving or otherwise using it in any way if you are not the addressee(s) or responsible for delivery. If you receive this email by mistake, please advise the sender and cancel it immediately. Steria may monitor the content of emails within its network to ensure compliance with its policies and procedures. Any email is susceptible to alteration and its integrity cannot be assured. Steria shall not be liable if the message is altered, modified, falsified, or even edited. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users