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
&quot;[INSTALLDIR]unregister.reg&quot;"/>

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

Reply via email to