Thanks that is useful to know, I am already setting ARPINSTALLLOCATION just not 
reading it back. I guess I could also use it for upgrades as you can get the 
previous product code from the upgrade table properties. As you say it is just 
a bit of boilerplate code to add to all installs. Just need to figure out if it 
would work with burn.

Neil

-----Original Message-----
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Sent: 03 August 2012 2:18 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Installation folder during maintenance

You need to read it back with a registrysearch. Windows saves it as the value 
InstallLocation under 
Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]

Because I follow the INSTALLDIR convention for identifying the main 
installation directory, I copy [ARPINSTALLLOCATION] into INSTALLDIR with 
SetProperty during maintenance.

During initial installation, I use another SetProperty to set 
ARPINSTALLLOCATION equal to [INSTALLDIR] after CostFinalize. Windows then 
handles saving it in the registry.

It sounds like a bit of fuss but it's just boilerplate code in each project.

-----Original Message-----
From: Neil Sleightholm [mailto:n...@x2systems.com]
Sent: 03 August 2012 14:03
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Installation folder during maintenance

Out of interest how would you read ARPINSTALLLOCATION back in WiX? Is it 
automatically set on repair?

Neil

-----Original Message-----
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
Sent: 03 August 2012 9:46 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Installation folder during maintenance

Do what Neil said, but this is a special case because there is already a 
property specifically for this called ARPINSTALLLOCATION. If you use this name, 
it's possible to get it back from MSI APIs using MsiGetProductInfo().

http://robmensching.com/blog/posts/2011/1/14/ARPINSTALLLOCATION-and-how-to-se
t-it-with-the-WiX-toolset


-----Original Message-----
From: Neil Sleightholm [mailto:n...@x2systems.com]
Sent: 02 August 2012 17:56
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Installation folder during maintenance

You would need to author your install to remember it, see this post 
http://robmensching.com/blog/posts/2010/5/2/The-WiX-toolsets-Remember-Propert
y-pattern

Neil

-----Original Message-----
From: Uma Harano [mailto:uhar...@esri.com]
Sent: 02 August 2012 16:53
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Installation folder during maintenance

Hi

I need some confirmation on what I should do about setting the installation 
folder during maintenance mode.



When the first time install sets the install location to non default location, 
does the msi remember this for subsequent maintenance operations?
Or should I create a custom action during maintenance mode to read the install 
location from the registry and re-set it?  I am finding different results with 
my testing. Sometimes this install location is remembered during maintenance 
and sometimes it goes back to default.



Thanks!

Uma

-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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.


-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to