Gary, Why not translate your powershell's script and your product's installation in one msi ?
Le %:Date:, Gary Ewan Park <ge...@gep13.co.uk> a écrit: > Hey, > > Thanks for replying! > > Perhaps I should provide some more information... > > I am helping out with creating an OSS project called ChocolateyGUI. This > involves creating an MSI package, which is then wrapped into a nuget > package, and then which is available in install from chocolatey.org. > > The nuget package includes both an install and uninstall PowerShell > script, which are then invoked from the chocolatey “engine” when > required. To that end, in order to create the uninstall script, I was > hoping to include the product code in the uninstall script. However, > since it sounds like the Product Code is not easily known, I am thinking > that I won’t be able to use this approach. I have “got around” this by > using the LocalPackage location from the registry key that is created to > uninstall the package, but not sure how “reliable” this is. > > This does bring up another question, and was hinted at in the other > response to this question: > > “If you plan an upgrade, why do you need ProductCode of the previous version > ?” > > What is the best approach here? We are going to be shipping updates to > the product. We are currently working on version 0.11.0, but this will > be closely followed by 0.12.0. Should I fix the Product Code, and simply > uninstall the previous version. If so, what is the norm when doing this? > > Sorry if this is naïve, but only really just getting started with > creating and maintaining msi. > > Thanks > > Gary > > Sent from Windows Mail > > From: Peter Shirtcliffe > Sent: 21 February 2013 10:45 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Using Product Id="*" > > You can use the ProductCode property within the MSI. > http://msdn.microsoft.com/en-gb/library/windows/desktop/aa370854%28v=vs.85%29 > .aspx > > If by "package" you mean a bootstrapper or something else external to the > MSI > then you can open the MSI with InstEd or Orca and examine the Property > table > for the same property. > > -----Original Message----- > From: Gary Ewan Park [mailto:ge...@gep13.co.uk] > Sent: 21 February 2013 07:00 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Using Product Id="*" > > Hello, > > I am still quite new to WiX, so please bear with me... > > I have implemented the following pattern: > > http://wix.sourceforge.net/manual-wix3/major_upgrade.htm > > I allow for ease of upgrade. However, the installation package that I am > trying to create needs to know about the ProductCode, in order to pass a > parameter to the msiexec to make it uninstall the app. Since I am using > Id=”*”, how can I find out the correct ProductCode (i.e. GUID), in order > to > pass as a parameter to msiexec. > > Thanks > > Gary > > Sent from Windows Mail > > ----------------------------------------------------------------------------- > - > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics Download AppDynamics Lite for > free > today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > 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. > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users -- Sincèrement, Gabriel "I know no way of judging the future but by the past." Patrick Henry "You can never plan the future by the past." Edmund Burke ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users