Re: [WiX-users] Trying to preserve installation location

2007-10-31 Thread Rob Mensching
Personally, I would just read the 4 pages in the MSI SDK on Upgrades a 
few times.  I think you only care about Major Upgrades and I think most 
of hte information is captured in one single page in the SDK. 

But it is up to you.  If you don't like MSI, you won't like WiX since 
all WiX does is build MSI packages.

mscheuner wrote:
 Rob Mensching-4 wrote:
   
 Have you read the MSI SDK about major upgrades?  It sounds like you're 
 not using the UpgradeCode to its full potential.

 

 In what way?? I haven't read the MSI SDK docs - but I did read Phil Wilson's
 Definitive Guide to Windows Installer - Chapter 6, on Upgrades. Quite
 honestly, still sounds pretty Greek to me - I don't like MSI, I think it's
 overly complicated, and way too much overkill for 90% of all installs.

 But I have this misbehaving MSI and my boss wants a solution ASAP :-( so I'm
 trying to struggle through learning as much as I absolutely need to
 understand what's happening, and trying to figure out the easiest ways to
 achieve what I need to achieve.

 Any further hints would be most welcome! My solution now is to store the
 install location into the registry and reading it from there again when
 installing a new version (using a major upgrade) since that information
 seems to survive the major upgrade. Seems and feels a bit like a kludge -
 but it works ok for now.

 Marc

   

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Trying to preserve installation location

2007-10-29 Thread mscheuner


Rob Mensching-4 wrote:
 
 Have you read the MSI SDK about major upgrades?  It sounds like you're 
 not using the UpgradeCode to its full potential.
 

In what way?? I haven't read the MSI SDK docs - but I did read Phil Wilson's
Definitive Guide to Windows Installer - Chapter 6, on Upgrades. Quite
honestly, still sounds pretty Greek to me - I don't like MSI, I think it's
overly complicated, and way too much overkill for 90% of all installs.

But I have this misbehaving MSI and my boss wants a solution ASAP :-( so I'm
trying to struggle through learning as much as I absolutely need to
understand what's happening, and trying to figure out the easiest ways to
achieve what I need to achieve.

Any further hints would be most welcome! My solution now is to store the
install location into the registry and reading it from there again when
installing a new version (using a major upgrade) since that information
seems to survive the major upgrade. Seems and feels a bit like a kludge -
but it works ok for now.

Marc

-- 
View this message in context: 
http://www.nabble.com/Trying-to-preserve-installation-location-tf4675773.html#a13475504
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Trying to preserve installation location

2007-10-28 Thread mscheuner

I found the problem: in order to get the double-click the MSI to install
metaphor working, we're always creating a new ProductID with each build -
the minor updates (leaving the ProductID intact and just updating the
Version attribute) don't work, since double-clicking on such a MSI will only
result in a dialog saying there's already another version of this product
installed; please uninstall first. (or is there a trick how to get this to
work properly?? Even the Tramontana WiX tutorial says you have to use
unwieldy command-line parameters for MSIEXEC to get it to work
properlyunbelievable!).

Thus, since the install location is stored PER PRODUCT, the new MSI won't
find any pre-installed product and thus won't find the previous product's
installation location (at least that's what I'm guessing, from the logs).
Also, if you uninstall the old product version first, and then run the minor
upgrade MSI, obviously the old product and thus its install location with it
are gone - so that doesn't work either.

Any more ideas?? Doesn't seem like all that much to ask, no? Product A v1.00
should store its install location, and a minor upgrade to v1.01 should work
by double-clicking on a MSI (no crazy command line) and should just nicely
upgrade in the folder chosen by the user when installing 1.00 heck,
even my rudimentary script-based install can do that! And Windows Installer
can't???  Sheesh...

Thanks!
Marc
-- 
View this message in context: 
http://www.nabble.com/Trying-to-preserve-installation-location-tf4675773.html#a13452248
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Trying to preserve installation location

2007-10-27 Thread mscheuner

Thanks for your response, Richard

Are you setting the property before the user has a chance to specify
the install location?  You need to set the property after any changes
to the install location are made.

I'm trying to store the install location the user has picked into
ARPINSTALLLOCATION using a custom action which gets fired
After=InstallFiles - I would assume by then the proper install directory
has been picked and set, no??

CustomAction Id='SAVEINSTALLLOCATION' Property=ARPINSTALLLOCATION
Value=[INSTALLDIR] / 
   
InstallExecuteSequence
Custom After='InstallFiles' Action='SAVEINSTALLLOCATION' /
/InstallExecuteSequence

Do I need to do something when installing a new version in order to *find*
this install location?

Thanks again!
Marc
-- 
View this message in context: 
http://www.nabble.com/Trying-to-preserve-installation-location-tf4675773.html#a13445820
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Trying to preserve installation location

2007-10-27 Thread Richard

In article [EMAIL PROTECTED],
mscheuner [EMAIL PROTECTED]  writes:

 
 Thanks for your response, Richard
 
 Are you setting the property before the user has a chance to specify
 the install location?  You need to set the property after any changes
 to the install location are made.
 
 I'm trying to store the install location the user has picked into
 ARPINSTALLLOCATION using a custom action which gets fired
 After=InstallFiles - I would assume by then the proper install directory
 has been picked and set, no??
 
 CustomAction Id='SAVEINSTALLLOCATION' Property=ARPINSTALLLOCATION
 Value=[INSTALLDIR] / 
  
 InstallExecuteSequence
 Custom After='InstallFiles' Action='SAVEINSTALLLOCATION' /
 /InstallExecuteSequence
 
 Do I need to do something when installing a new version in order to *find*
 this install location?

I believe you'll need to set this before the RegisterProduct action,
which takes care of all the Add/Remove Program stuff, but the
documentation isn't explicit on exactly which standard action consumes
this property.

When you run your install, what does the verbose log say when your
action is run?  It should have a property change notification in the
log.
-- 
The Direct3D Graphics Pipeline -- DirectX 9 draft available for download
  http://www.xmission.com/~legalize/book/download/index.html

Legalize Adulthood! http://blogs.xmission.com/legalize/

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Trying to preserve installation location

2007-10-23 Thread Marc Scheuner
Folks,

I'm trying to preserve the installation location that the user has picked
during initial install so that a subsequent install will always go to that
very same location.

According to my clever book on Windows Installer, I need to use a type 51
custom action to set the ARPINSTALLLOCATION property to the location where
the app is installed.

I'm trying to achieve this with this snippet in WiX (v2) - doesn't seem to
work, though :-(

InstallExecuteSequence
  Custom Action=SaveTargetDir After=InstallValidate /
/InstallExecuteSequence

CustomAction Id=SaveTargetDir Property=ARPINSTALLLOCATION
Value=[TARGETDIR] /

When I goo look in the registry, a totally wrong path is being stored in the
InstallLocation property in my app's key. Why??

Any ideas, hints ? What am I missing here??

Thanks!
Marc

-- 

Marc ScheunerMay The Source Be With You!
Berne, Switzerland  mscheuner -at- mvps.org
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Trying to preserve installation location

2007-10-23 Thread Richard

In article [EMAIL PROTECTED],
Marc Scheuner [EMAIL PROTECTED]  writes:

 When I goo look in the registry, a totally wrong path is being stored in the
 InstallLocation property in my app's key. Why??

Are you setting the property before the user has a chance to specify
the install location?  You need to set the property after any changes
to the install location are made.
-- 
The Direct3D Graphics Pipeline -- DirectX 9 draft available for download
  http://www.xmission.com/~legalize/book/download/index.html

Legalize Adulthood! http://blogs.xmission.com/legalize/

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users