Re: [WiX-users] How to not launch install if previous version not found?

2014-05-06 Thread Nick Ramirez
Upgrades are used to find and replace previously installed files. But if
there's nothing to replace, there's nothing to say the install can't
continue as a fresh install. If you need to not run the installer at all if
a previous install isn't there then try using a launch condition
(http://wixtoolset.org/documentation/manual/v3/xsd/wix/launchconditions.html)



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-not-launch-install-if-previous-version-not-found-tp7594474p7594535.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to not launch install if previous version not found?

2014-05-06 Thread Edward Sutton
Hi Nick,

Thank you for your reply.  I think that is a better fit.  I have also thought 
IExpress and VBScript might be a simpler approach.

I admit what I am doing is unusual.  I have an old pre-Vista legacy app that 
used HKEY_LOCAL_MACHINE to store product key registration information.  Under 
Vista and later this gets virtualized and stored under HKEY_CURRENT_USER.  
This causes each new user that logs on to call in with a broken license 
complaint.  My initial thought was the easiest solution for this small set of 
customers was to install in new DLL that basically ignores the registry and 
returns happy.  

After struggling with the installer I think time would have been better spent 
to re-write the DLL to read/write from the correct ALLUSERSPROFILE ProgramData 
location.

-Ed


-Original Message-
From: Nick Ramirez [mailto:nickra...@hotmail.com] 
Sent: Tuesday, May 06, 2014 8:59 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to not launch install if previous version not 
found?

Upgrades are used to find and replace previously installed files. But if 
there's nothing to replace, there's nothing to say the install can't continue 
as a fresh install. If you need to not run the installer at all if a previous 
install isn't there then try using a launch condition
(http://wixtoolset.org/documentation/manual/v3/xsd/wix/launchconditions.html)



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-not-launch-install-if-previous-version-not-found-tp7594474p7594535.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity #149; Requirements for 
releasing software faster #149; Expert tips and advice for migrating your SCM 
now http://p.sf.net/sfu/perforce ___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed.  If you have received this email in error 
please notify the sender.  Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing.  Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company.  Finally, the recipient should check this email and any attachments 
for the presence of viruses.  The company accepts no liability for any damage 
caused by any virus transmitted by this email.



--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to not launch install if previous version not found?

2014-05-06 Thread Phil Wilson
This may no longer be an option, but an external manifest to that exe
would disable its virtualization and make it require elevation.

http://blogs.msdn.com/b/patricka/archive/2009/12/09/answers-to-several-application-manifest-mysteries-and-questions.aspx
---
Phil Wilson


On Tue, May 6, 2014 at 7:29 AM, Edward Sutton edward.sut...@subsite.com wrote:
 Hi Nick,

 Thank you for your reply.  I think that is a better fit.  I have also thought 
 IExpress and VBScript might be a simpler approach.

 I admit what I am doing is unusual.  I have an old pre-Vista legacy app that 
 used HKEY_LOCAL_MACHINE to store product key registration information.  Under 
 Vista and later this gets virtualized and stored under HKEY_CURRENT_USER.  
 This causes each new user that logs on to call in with a broken license 
 complaint.  My initial thought was the easiest solution for this small set of 
 customers was to install in new DLL that basically ignores the registry and 
 returns happy.

 After struggling with the installer I think time would have been better spent 
 to re-write the DLL to read/write from the correct ALLUSERSPROFILE 
 ProgramData location.

 -Ed


 -Original Message-
 From: Nick Ramirez [mailto:nickra...@hotmail.com]
 Sent: Tuesday, May 06, 2014 8:59 AM
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] How to not launch install if previous version not 
 found?

 Upgrades are used to find and replace previously installed files. But if 
 there's nothing to replace, there's nothing to say the install can't continue 
 as a fresh install. If you need to not run the installer at all if a previous 
 install isn't there then try using a launch condition
 (http://wixtoolset.org/documentation/manual/v3/xsd/wix/launchconditions.html)



 --
 View this message in context: 
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-not-launch-install-if-previous-version-not-found-tp7594474p7594535.html
 Sent from the wix-users mailing list archive at Nabble.com.

 --
 Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
 #149; 3 signs your SCM is hindering your productivity #149; Requirements 
 for releasing software faster #149; Expert tips and advice for migrating 
 your SCM now http://p.sf.net/sfu/perforce 
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 This email and any files transmitted with it from The Charles Machine Works, 
 Inc. are confidential and intended solely for the use of the individual or 
 entity to which they are addressed.  If you have received this email in error 
 please notify the sender.  Our company accepts no liability for the contents 
 of this email, or for the consequences of any actions taken on the basis of 
 the information provided, unless that information is subsequently confirmed 
 in writing.  Please note that any views or opinions presented in this email 
 are solely those of the author and do not necessarily represent those of the 
 company.  Finally, the recipient should check this email and any attachments 
 for the presence of viruses.  The company accepts no liability for any damage 
 caused by any virus transmitted by this email.



 --
 Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
 #149; 3 signs your SCM is hindering your productivity
 #149; Requirements for releasing software faster
 #149; Expert tips and advice for migrating your SCM now
 http://p.sf.net/sfu/perforce
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to not launch install if previous version not found?

2014-05-02 Thread Edward Sutton
(Sorry for re-post, the example Minimum and Maximum did not match my 
description.)

I created an upgrade containing an updated DLL that replaces a previous version.

How can I make the install require a previous version to be installed?  Is that 
not the purpose of Upgrade?  I cannot get it to work as expected.  The 
upgrade is happy to launch without the previous version installed.

Here is what I did:

  1.  Opened version 1.2.3 of the original MSI in WixEdit
  2.  Replaced a single DLL with an updated DLL
  3.  Updated version to 1.2.4
  4.  Updated Product Id
  5.  UpgradeCode did * not * changed
  6.  Added Upgrade element after the last Property element

Upgrade Id={59BF7F9E-FF46-45D5-8050-F1477466A661}

UpgradeVersion Minimum=1.2.3 Maximum=1.2.3 
IncludeMinimum=yes IncludeMaximum=yes Property=OLDERVERSIONBEINGUPGRADED 
/

/Upgrade


Is OLDERVERSIONBEINGUPGRADED a pre-defined thing or just used as a comment?  I 
have no matching Property named OLDERVERSIONBEINGUPGRADED.

Thanks,

-Ed


From: Edward Sutton
Sent: Friday, May 02, 2014 1:30 PM
To: wix-users@lists.sourceforge.net
Subject: How to not launch install if previous version not found?

I created an upgrade containing an updated DLL that replaces a previous version.

How can I make the install require a previous version has been installed?  Is 
that not the purpose of Upgrade?  I cannot get it to work as expected.  The 
upgrade is happy to launch without the previous version installed.

Here is what I did:

  1.  Opened version 1.2.3 of the original MSI in WixEdit
  2.  Replaced a single DLL with an updated DLL
  3.  Updated version to 1.2.4
  4.  Updated Product Id
  5.  UpgradeCode did * not * changed
  6.  Added Upgrade element after the last Property element

Upgrade Id={59BF7F9E-FF46-45D5-8050-F1477466A661}

UpgradeVersion Minimum=3.8.1 Maximum=3.8.1 
IncludeMinimum=yes IncludeMaximum=yes Property=OLDERVERSIONBEINGUPGRADED 
/

/Upgrade


Is OLDERVERSIONBEINGUPGRADED a pre-defined thing or just used as a comment?  
There is no matching Property.

-Ed






This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed.  If you have received this email in error 
please notify the sender.  Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing.  Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company.  Finally, the recipient should check this email and any attachments 
for the presence of viruses.  The company accepts no liability for any damage 
caused by any virus transmitted by this email.

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users