Hi, You should really be converting the contents of your .reg files to wix RegistryValue (etc) elements.
http://wix.sourceforge.net/manual-wix3/wix_xsd_registryvalue.htm Registry access from the wix tutorial http://www.tramontana.co.hu/wix/lesson1.php#1.7 Dave -----Original Message----- From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Sent: 10 September 2009 11:35 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Calling $(env.SystemRoot)\regedit on uninstall The $env.WinDir variable is only available during built time - on your PC, not at the end-users. Use MSI properties like [WindowsFolder] instead. Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -----Original Message----- From: Svein Dybvik [mailto:s...@steria.no] Sent: Thursday, September 10, 2009 10:58 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Calling $(env.SystemRoot)\regedit on uninstall Additional info: I created a small .net-application which lists all environment variables in the system (uses System.Environment.GetEnvironmentVariables();) And that returned: Systemroot = M:\WINDOWS SystemDrive = M: Windir = M:\WINDOWS And I'm using WiX 3.0. Svein -----Opprinnelig melding----- Fra: Svein Dybvik [mailto:s...@steria.no] Sendt: 10. september 2009 10:16 Til: wix-users@lists.sourceforge.net Emne: [WiX-users] Calling $(env.SystemRoot)\regedit on uninstall 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 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 ------------------------------------------------------------------------ ------ 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 SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ 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