[WiX-users] concurrent execution of bootstrapper.exes
Hello, Considering that I have two Bootstrapper wix projects 1) BootStrapper1.exe that has chain chain MsiPackage SourceFile=1.msi / /chain 2) BootStrapper2.exe that has chain chain MsiPackage SourceFile=2.msi / /chain What would happen if my user runs BootStrapper1.exe and BootStrapper2.exe at the same time?Would it install 1.msi and 2.msi at the same time or first install 1.msi-wait for the installservice to be free and then install 2.msi. Thanks Regards, Prantik Sarmah -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Queries on Upgrade
Hello, I am stuck with Upgrade (remove any previous version) issues with WiX. I am framing my questions below which I feel might help me if answered. Thank you for your replies in advance. 1. Product Id = * and there is a GUID in Upgrade Code. Still whenever I install my product, there is no entry for Upgrade Code is found in Registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall OR HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall) rather a new Product Id (a new random GUID) is found as a new registry key. I have read many blogs and people say that they find a new registry key corresponding to Upgrade Code in their registry not Product code. If this is the case then how 'Upgrade' is supposed to work? 2. I have many custom actions. I want a set of custom actions only when product is installed for the first time so I have given condition as ((NOT Installed) AND (NOT UPGRADINGPRODUCTCODE)) however when I run next version msi on top of some existing version, these custom actions still get executed. I did verbose logging and saw that 'Related Products' are found and yet 'NOT Installed' property condition doesn't seem to work. 3. Can we have MajorUpgrade and Upgrade in same file while scheduling RemoveExistingProducts explicitly? I am getting compiler error if I do so. I know that MajorUpgrade schedules 'RemoveExistingProducts' by default so if I don't schedule 'RemoveExistingProducts' explicitly then will the Upgrade work? Any idea anyone? Need help desperately. Aparna Karkare LT Infotech OAI-syshttp://inside.here.travp.net/OperationsSystems/iwcm/IT/Portfolios/Architecture/Components/index.aspx, Enterprise Components and Frameworks Office: 020-6641-6142 Email: akark...@travelers.commailto:akark...@travelers.com This communication, including attachments, is confidential, may be subject to legal privileges, and is intended for the sole use of the addressee. Any use, duplication, disclosure or dissemination of this communication, other than by the addressee, is prohibited. If you have received this communication in error, please notify the sender immediately and delete or destroy this communication and all copies. TRVDiscDefault::1201 -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Queries on Upgrade
Good day, 1. What's your installation context ? User or Machine ? 2. Your condition seem ok if UPGRADINGPRODUCTCODE is the right property. 3. What's your need ? Check your msi with [1]InstEd. It's always instructive. Le Jeu 24 Avril 2014, à 12:37, Karkare,Aparna a écrit : Hello, I am stuck with Upgrade (remove any previous version) issues with WiX. I am framing my questions below which I feel might help me if answered. Thank you for your replies in advance. 1. Product Id = * and there is a GUID in Upgrade Code. Still whenever I install my product, there is no entry for Upgrade Code is found in Registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall OR HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersio n\Uninstall) rather a new Product Id (a new random GUID) is found as a new registry key. I have read many blogs and people say that they find a new registry key corresponding to Upgrade Code in their registry not Product code. If this is the case then how 'Upgrade' is supposed to work? 2. I have many custom actions. I want a set of custom actions only when product is installed for the first time so I have given condition as ((NOT Installed) AND (NOT UPGRADINGPRODUCTCODE)) however when I run next version msi on top of some existing version, these custom actions still get executed. I did verbose logging and saw that 'Related Products' are found and yet 'NOT Installed' property condition doesn't seem to work. 3. Can we have MajorUpgrade and Upgrade in same file while scheduling RemoveExistingProducts explicitly? I am getting compiler error if I do so. I know that MajorUpgrade schedules 'RemoveExistingProducts' by default so if I don't schedule 'RemoveExistingProducts' explicitly then will the Upgrade work? Any idea anyone? Need help desperately. Aparna Karkare LT Infotech OAI-sys[2]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portf olios/Architecture/Components/index.aspx, Enterprise Components and Frameworks Office: 020-6641-6142 Email: [3]akark...@travelers.com[4]mailto:akark...@travelers.com This communication, including attachments, is confidential, may be subject to legal privileges, and is intended for the sole use of the addressee. Any use, duplication, disclosure or dissemination of this communication, other than by the addressee, is prohibited. If you have received this communication in error, please notify the sender immediately and delete or destroy this communication and all copies. TRVDiscDefault::1201 --- --- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform [5]http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list [6]WiX-users@lists.sourceforge.net [7]https://lists.sourceforge.net/lists/listinfo/wix-users -- Sincerely, 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 References 1. http://www.instedit.com/ 2. http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portfolios/Architecture/Components/index.aspx 3. mailto:akark...@travelers.com 4. mailto:akark...@travelers.com 5. http://p.sf.net/sfu/ExoPlatform 6. mailto:WiX-users@lists.sourceforge.net 7. https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Queries on Upgrade
Hi Gabriel, 1. InstallScope=perUser 2 and 3 are resolved. I implemented Upgrade and MajorUpgrade both with AllowSameVersionUpgrades =yes. Can you please explain about 1st point? Thanks for your reply. Aparna Karkare LT Infotech OAI-sys, Enterprise Components and Frameworks Office: 020-6641-6142 Email: akark...@travelers.com -Original Message- From: Gabriel Ivanes [mailto:g...@fastmail.net] Sent: Thursday, April 24, 2014 8:00 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Queries on Upgrade Good day, 1. What's your installation context ? User or Machine ? 2. Your condition seem ok if UPGRADINGPRODUCTCODE is the right property. 3. What's your need ? Check your msi with [1]InstEd. It's always instructive. Le Jeu 24 Avril 2014, à 12:37, Karkare,Aparna a écrit : Hello, I am stuck with Upgrade (remove any previous version) issues with WiX. I am framing my questions below which I feel might help me if answered. Thank you for your replies in advance. 1. Product Id = * and there is a GUID in Upgrade Code. Still whenever I install my product, there is no entry for Upgrade Code is found in Registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall OR HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersio n\Uninstall) rather a new Product Id (a new random GUID) is found as a new registry key. I have read many blogs and people say that they find a new registry key corresponding to Upgrade Code in their registry not Product code. If this is the case then how 'Upgrade' is supposed to work? 2. I have many custom actions. I want a set of custom actions only when product is installed for the first time so I have given condition as ((NOT Installed) AND (NOT UPGRADINGPRODUCTCODE)) however when I run next version msi on top of some existing version, these custom actions still get executed. I did verbose logging and saw that 'Related Products' are found and yet 'NOT Installed' property condition doesn't seem to work. 3. Can we have MajorUpgrade and Upgrade in same file while scheduling RemoveExistingProducts explicitly? I am getting compiler error if I do so. I know that MajorUpgrade schedules 'RemoveExistingProducts' by default so if I don't schedule 'RemoveExistingProducts' explicitly then will the Upgrade work? Any idea anyone? Need help desperately. Aparna Karkare LT Infotech OAI-sys[2]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portf olios/Architecture/Components/index.aspx, Enterprise Components and Frameworks Office: 020-6641-6142 Email: [3]akark...@travelers.com[4]mailto:akark...@travelers.com This communication, including attachments, is confidential, may be subject to legal privileges, and is intended for the sole use of the addressee. Any use, duplication, disclosure or dissemination of this communication, other than by the addressee, is prohibited. If you have received this communication in error, please notify the sender immediately and delete or destroy this communication and all copies. TRVDiscDefault::1201 --- --- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform [5]http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list [6]WiX-users@lists.sourceforge.net [7]https://lists.sourceforge.net/lists/listinfo/wix-users -- Sincerely, 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 References 1. http://www.instedit.com/ 2. http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portfolios/Architecture/Components/index.aspx 3. mailto:akark...@travelers.com 4. mailto:akark...@travelers.com 5. http://p.sf.net/sfu/ExoPlatform 6. mailto:WiX-users@lists.sourceforge.net 7. https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And
[WiX-users] Logging in EXE custom action
I have to spawn an exe as a custom action that I have complete control over. I am using the CAQuietExe to do this. I need to log some info when this runs to the install log. Is this possible? My first thought was to pass the MSIHANDLE to the exe but I do not know if this is per-process which I would think it is. Plus since i'm using CAQuietExec I don't know how to pass the MSIHANDLE from WIX. I would have to call a local custom action to spawn the exe. I then tried to get the MSIHANDLE from within the exe. I pass the product id of the install to the exe and then call ::MsiOpenProduct. The return value is zero and I get a handle back which has a value of 1 (doesn't seem like a legit handle). I then log using that via msicreaterecord/msirecordsetstring/msiprocessmessage/msiclosehandle. However nothing shows up in the log. Is there a different way to do this? Thanks. -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] concurrent execution of bootstrapper.exes
The only restriction is that no two installations can be in their execute sequence at the same time. Installing something silently more or less jumps straight to the execute sequence. -Original Message- From: Prantik Sarmah [mailto:prantik.sar...@grapecity.com] Sent: Thursday, April 24, 2014 3:50 AM To: General discussion about the WiX toolset. Subject: [WiX-users] concurrent execution of bootstrapper.exes Hello, Considering that I have two Bootstrapper wix projects 1) BootStrapper1.exe that has chain chain MsiPackage SourceFile=1.msi / /chain 2) BootStrapper2.exe that has chain chain MsiPackage SourceFile=2.msi / /chain What would happen if my user runs BootStrapper1.exe and BootStrapper2.exe at the same time?Would it install 1.msi and 2.msi at the same time or first install 1.msi-wait for the installservice to be free and then install 2.msi. Thanks Regards, Prantik Sarmah -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Queries on Upgrade
That's why you didn't find it in HKLM. It's published in HKUSERS\{SID from user which installed the product}. Le Jeu 24 Avril 2014, à 14:44, Karkare,Aparna a écrit : Hi Gabriel, 1. InstallScope=perUser 2 and 3 are resolved. I implemented Upgrade and MajorUpgrade both with AllowSameVersionUpgrades =yes. Can you please explain about 1st point? Thanks for your reply. Aparna Karkare LT Infotech OAI-sys, Enterprise Components and Frameworks Office: 020-6641-6142 Email: [1]akark...@travelers.com -Original Message- From: Gabriel Ivanes [[2]mailto:g...@fastmail.net] Sent: Thursday, April 24, 2014 8:00 AM To: [3]wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Queries on Upgrade Good day, 1. What's your installation context ? User or Machine ? 2. Your condition seem ok if UPGRADINGPRODUCTCODE is the right property. 3. What's your need ? Check your msi with [1]InstEd. It's always instructive. Le Jeu 24 Avril 2014, à 12:37, Karkare,Aparna a écrit : Hello, I am stuck with Upgrade (remove any previous version) issues with WiX. I am framing my questions below which I feel might help me if answered. Thank you for your replies in advance. 1. Product Id = * and there is a GUID in Upgrade Code. Still whenever I install my product, there is no entry for Upgrade Code is found in Registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall OR HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersio n\Uninstall) rather a new Product Id (a new random GUID) is found as a new registry key. I have read many blogs and people say that they find a new registry key corresponding to Upgrade Code in their registry not Product code. If this is the case then how 'Upgrade' is supposed to work? 2. I have many custom actions. I want a set of custom actions only when product is installed for the first time so I have given condition as ((NOT Installed) AND (NOT UPGRADINGPRODUCTCODE)) however when I run next version msi on top of some existing version, these custom actions still get executed. I did verbose logging and saw that 'Related Products' are found and yet 'NOT Installed' property condition doesn't seem to work. 3. Can we have MajorUpgrade and Upgrade in same file while scheduling RemoveExistingProducts explicitly? I am getting compiler error if I do so. I know that MajorUpgrade schedules 'RemoveExistingProducts' by default so if I don't schedule 'RemoveExistingProducts' explicitly then will the Upgrade work? Any idea anyone? Need help desperately. Aparna Karkare LT Infotech OAI-sys[2][4]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Po rtf olios/Architecture/Components/index.aspx, Enterprise Components and Frameworks Office: 020-6641-6142 Email: [3][5]akark...@travelers.com[4][6]mailto:akark...@travelers.com This communication, including attachments, is confidential, may be subject to legal privileges, and is intended for the sole use of the addressee. Any use, duplication, disclosure or dissemination of this communication, other than by the addressee, is prohibited. If you have received this communication in error, please notify the sender immediately and delete or destroy this communication and all copies. TRVDiscDefault::1201 --- --- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform [5][7]http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list [6][8]WiX-users@lists.sourceforge.net [7][9]https://lists.sourceforge.net/lists/listinfo/wix-users -- Sincerely, 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 References 1. [10]http://www.instedit.com/ 2. [11]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portfolios/A rchitecture/Components/index.aspx 3. [12]mailto:akark...@travelers.com 4. [13]mailto:akark...@travelers.com 5. [14]http://p.sf.net/sfu/ExoPlatform 6. [15]mailto:WiX-users@lists.sourceforge.net 7. [16]https://lists.sourceforge.net/lists/listinfo/wix-users --- --- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform [17]http://p.sf.net/sfu/ExoPlatform
Re: [WiX-users] Queries on Upgrade
1. UpgradeCodes and ProductCodes are in the registry, but that's an implementation detail. They are not there in a form that a search for them will find them. 2. UPGRADINGPRODUCTCODE is what you set in the OLDER product that is being upgraded. It is not for your new upgrade. If you want to detect that you are upgrading an older product and you used the majorupgrade tag, then use the WIX_UPGRADE_DETECTED property as documented here: http://wixtoolset.org/documentation/manual/v3/xsd/wix/majorupgrade.html 3. Just use the majorupgrade element and the schedule tag is how you say where you want REP to run. --- Phil Wilson On Thu, Apr 24, 2014 at 5:44 AM, Karkare,Aparna akark...@travelers.com wrote: Hi Gabriel, 1. InstallScope=perUser 2 and 3 are resolved. I implemented Upgrade and MajorUpgrade both with AllowSameVersionUpgrades =yes. Can you please explain about 1st point? Thanks for your reply. Aparna Karkare LT Infotech OAI-sys, Enterprise Components and Frameworks Office: 020-6641-6142 Email: akark...@travelers.com -Original Message- From: Gabriel Ivanes [mailto:g...@fastmail.net] Sent: Thursday, April 24, 2014 8:00 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Queries on Upgrade Good day, 1. What's your installation context ? User or Machine ? 2. Your condition seem ok if UPGRADINGPRODUCTCODE is the right property. 3. What's your need ? Check your msi with [1]InstEd. It's always instructive. Le Jeu 24 Avril 2014, à 12:37, Karkare,Aparna a écrit : Hello, I am stuck with Upgrade (remove any previous version) issues with WiX. I am framing my questions below which I feel might help me if answered. Thank you for your replies in advance. 1. Product Id = * and there is a GUID in Upgrade Code. Still whenever I install my product, there is no entry for Upgrade Code is found in Registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall OR HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersio n\Uninstall) rather a new Product Id (a new random GUID) is found as a new registry key. I have read many blogs and people say that they find a new registry key corresponding to Upgrade Code in their registry not Product code. If this is the case then how 'Upgrade' is supposed to work? 2. I have many custom actions. I want a set of custom actions only when product is installed for the first time so I have given condition as ((NOT Installed) AND (NOT UPGRADINGPRODUCTCODE)) however when I run next version msi on top of some existing version, these custom actions still get executed. I did verbose logging and saw that 'Related Products' are found and yet 'NOT Installed' property condition doesn't seem to work. 3. Can we have MajorUpgrade and Upgrade in same file while scheduling RemoveExistingProducts explicitly? I am getting compiler error if I do so. I know that MajorUpgrade schedules 'RemoveExistingProducts' by default so if I don't schedule 'RemoveExistingProducts' explicitly then will the Upgrade work? Any idea anyone? Need help desperately. Aparna Karkare LT Infotech OAI-sys[2]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portf olios/Architecture/Components/index.aspx, Enterprise Components and Frameworks Office: 020-6641-6142 Email: [3]akark...@travelers.com[4]mailto:akark...@travelers.com This communication, including attachments, is confidential, may be subject to legal privileges, and is intended for the sole use of the addressee. Any use, duplication, disclosure or dissemination of this communication, other than by the addressee, is prohibited. If you have received this communication in error, please notify the sender immediately and delete or destroy this communication and all copies. TRVDiscDefault::1201 --- --- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform [5]http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list [6]WiX-users@lists.sourceforge.net [7]https://lists.sourceforge.net/lists/listinfo/wix-users -- Sincerely, 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 References 1. http://www.instedit.com/ 2. http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portfolios/Architecture/Components/index.aspx 3. mailto:akark...@travelers.com 4. mailto:akark...@travelers.com 5. http://p.sf.net/sfu/ExoPlatform 6. mailto:WiX-users@lists.sourceforge.net 7.
[WiX-users] Problem with User Macros in WiX projects
In my WiX project's pre-build and post-build steps I have attempted to reference user macros (variables) that I have defined in Visual Studio Property Sheets but it appears that they are not being passed. Is there something I need to do? Is this not possible? Is this an oversight/bug? I am using WiX 3.8 and Visual Studio 2013. Regards, Greg Prosch -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
Hello, I'm starting to use Wix to create an installer for our application. I need to install Tomcat 7 and deploy some wars in the background. I'm having difficulties starting the Tomcat service. I couldn't find any sample online. I hope someone can help me out as I am currently stuck. This is that I use to create and start the Tomcat 7 service. When I run the service gets installed but it get stuck on Starting Services. Is there anything wrong in the code below. I used the start command from the Apache site. Thank you for your help. Fragment Component Id=CPMTomcatService Guid=MyGUI Directory=TOMCAT_BIN_DIR File Id=TomcatEXE KeyPath=yes Source=$(var.tomcatDirectory)\bin\tomcat7.exe / ServiceInstall Id=TomcatServiceService Name=Tomcat7 DisplayName=Apache Tomcat7 Start=auto ErrorControl=normal Type=ownProcess Vital=yes Arguments=//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop/ ServiceControl Id=TomcatServiceCTRL Name=Tomcat7 Start=install Stop=both Remove=uninstall Wait=yes / /Component /Fragment Zac -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Add system sub folder
I have a service that outputs some definitions to an Excel file. As such, I need to always add this folder on install: C:\Windows\system32\config\systemprofile\desktop When this is 64 bit I also need to add this folder on install: C:\Windows\SysWow64\config\systemprofile\desktop Can someone give me the syntax for performing this? Thanks for your help. -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
Put the arguments under quot, something like this: Arguments=quot;//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stopquot;/ Also paste the log from where the service is being created, it will help! --Pavan -Original Message- From: Eric Chaland [mailto:echal...@yahoo.com] Sent: Thursday, April 24, 2014 8:25 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Hello, I'm starting to use Wix to create an installer for our application. I need to install Tomcat 7 and deploy some wars in the background. I'm having difficulties starting the Tomcat service. I couldn't find any sample online. I hope someone can help me out as I am currently stuck. This is that I use to create and start the Tomcat 7 service. When I run the service gets installed but it get stuck on Starting Services. Is there anything wrong in the code below. I used the start command from the Apache site. Thank you for your help. Fragment Component Id=CPMTomcatService Guid=MyGUI Directory=TOMCAT_BIN_DIR File Id=TomcatEXE KeyPath=yes Source=$(var.tomcatDirectory)\bin\tomcat7.exe / ServiceInstall Id=TomcatServiceService Name=Tomcat7 DisplayName=Apache Tomcat7 Start=auto ErrorControl=normal Type=ownProcess Vital=yes Arguments=//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop/ ServiceControl Id=TomcatServiceCTRL Name=Tomcat7 Start=install Stop=both Remove=uninstall Wait=yes / /Component /Fragment Zac -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
Do you know how you are supposed to install Tomcat as a service? If that -install option is what actually installs Tomcat as an NT service, then you shouldn't be using ServiceInstall because that installs it as a service too. --- Phil Wilson On Thu, Apr 24, 2014 at 9:06 AM, Pavan Konduru pavan.kond...@accelrys.com wrote: Put the arguments under quot, something like this: Arguments=quot;//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stopquot;/ Also paste the log from where the service is being created, it will help! --Pavan -Original Message- From: Eric Chaland [mailto:echal...@yahoo.com] Sent: Thursday, April 24, 2014 8:25 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Hello, I'm starting to use Wix to create an installer for our application. I need to install Tomcat 7 and deploy some wars in the background. I'm having difficulties starting the Tomcat service. I couldn't find any sample online. I hope someone can help me out as I am currently stuck. This is that I use to create and start the Tomcat 7 service. When I run the service gets installed but it get stuck on Starting Services. Is there anything wrong in the code below. I used the start command from the Apache site. Thank you for your help. Fragment Component Id=CPMTomcatService Guid=MyGUI Directory=TOMCAT_BIN_DIR File Id=TomcatEXE KeyPath=yes Source=$(var.tomcatDirectory)\bin\tomcat7.exe / ServiceInstall Id=TomcatServiceService Name=Tomcat7 DisplayName=Apache Tomcat7 Start=auto ErrorControl=normal Type=ownProcess Vital=yes Arguments=//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop/ ServiceControl Id=TomcatServiceCTRL Name=Tomcat7 Start=install Stop=both Remove=uninstall Wait=yes / /Component /Fragment Zac -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Restart manager, services, unattended installs
We have a in house windows service installed by a WiX installer. Since our users on these remote systems are not administrators, this install is actually brokered by the same service. That is, msiexec is called by the service itself, and the installation is called with /quiet /norestart as we do not want the user to see anything nor to have the OS reboot immediately, as the user will be confused/lose work, etc. by this. Unfortunately under some circumstances the installation fails because the files from the service (e.g. its EXE and its remoting proxy library) are in use. I don't care if it takes a reboot to finish the installation; but I do want to ensure the files are eventually updated and the service continues working. What is the most reliable way to do this? I take it that if the installation were to be manual the FilesInUse dialog would do the trick, but with the unattended, SYSTEM brokered install this won't of course work. So what will click OK there and do the shutdown and restart of the service? Is it passable as a property in the installer itself? Thanks, Keith Douglas Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Restart manager, services, unattended installs
Hi Keith, Far from being an expert, but I am currently dealing with similar issues: Here is an Idea: Property Id=MSIRESTARTMANAGERCONTROL Value=Disable/ Also you can remove the FileInUse dialogs from within the WIX sources And lastly take a look at this: http://msdn.microsoft.com/en-us/library/aa373649(v=vs.85).aspx Hope this helps, Marc -Original Message- From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca] Sent: April-24-2014 3:07 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Restart manager, services, unattended installs We have a in house windows service installed by a WiX installer. Since our users on these remote systems are not administrators, this install is actually brokered by the same service. That is, msiexec is called by the service itself, and the installation is called with /quiet /norestart as we do not want the user to see anything nor to have the OS reboot immediately, as the user will be confused/lose work, etc. by this. Unfortunately under some circumstances the installation fails because the files from the service (e.g. its EXE and its remoting proxy library) are in use. I don't care if it takes a reboot to finish the installation; but I do want to ensure the files are eventually updated and the service continues working. What is the most reliable way to do this? I take it that if the installation were to be manual the FilesInUse dialog would do the trick, but with the unattended, SYSTEM brokered install this won't of course work. So what will click OK there and do the shutdown and restart of the service? Is it passable as a property in the installer itself? Thanks, Keith Douglas Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Restart manager, services, unattended installs
Hi Marc, thanks for answering. I am not sure the property you mentioned is the right one: the documentation says that with it set the way you recommend the FilesInUse dialog will be used. But since I do unattended/installs from a service, that doesn't sound useful - since it seems that would freeze the installation waiting for the input which can never come. Unless of course some other option (on the command line? a property?) works to automatically answer the dialog with a shut down the process type answer. But that's precisely what I don't see explained - least of all on that page. Is it buried somewhere else? In fact I already use the property in question, so maybe this is exactly opposite? Hm, for some reason I have MSIRMSHUTDOWN = 2 set as well. Maybe that's wrong. As for the Restart Manager APIs, I found on my own aa373682, which explains how to register applications to automatically be shutdown and restarted. That sounds promising, but how do I do that from WiX? Util:RestartResource ? I seem to have tried that in the past unsuccessfully. Keith Douglas Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada -Original Message- From: Marc Beaudry [mailto:mbeau...@matrox.com] Sent: April-24-14 4:04 PM To: 'General discussion about the WiX toolset.' Subject: Re: [WiX-users] Restart manager, services, unattended installs Hi Keith, Far from being an expert, but I am currently dealing with similar issues: Here is an Idea: Property Id=MSIRESTARTMANAGERCONTROL Value=Disable/ Also you can remove the FileInUse dialogs from within the WIX sources And lastly take a look at this: http://msdn.microsoft.com/en-us/library/aa373649(v=vs.85).aspx Hope this helps, Marc -Original Message- From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca] Sent: April-24-2014 3:07 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Restart manager, services, unattended installs We have a in house windows service installed by a WiX installer. Since our users on these remote systems are not administrators, this install is actually brokered by the same service. That is, msiexec is called by the service itself, and the installation is called with /quiet /norestart as we do not want the user to see anything nor to have the OS reboot immediately, as the user will be confused/lose work, etc. by this. Unfortunately under some circumstances the installation fails because the files from the service (e.g. its EXE and its remoting proxy library) are in use. I don't care if it takes a reboot to finish the installation; but I do want to ensure the files are eventually updated and the service continues working. What is the most reliable way to do this? I take it that if the installation were to be manual the FilesInUse dialog would do the trick, but with the unattended, SYSTEM brokered install this won't of course work. So what will click OK there and do the shutdown and restart of the service? Is it passable as a property in the installer itself? Thanks, Keith Douglas Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform
Re: [WiX-users] Restart manager, services, unattended installs
Hi Keith, I am not running silently and the Property and the removal of the dialogs worked for my Windows 7 installation, on Windows 8 I am still getting the Restart at the very end, when the MSI terminates (The last dialog closes). It seems to be popping the reboot dialog from Windows Installer and not WIX. Sorry I couldn't be of more help, Marc -Original Message- From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca] Sent: April-24-2014 4:37 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Restart manager, services, unattended installs Hi Marc, thanks for answering. I am not sure the property you mentioned is the right one: the documentation says that with it set the way you recommend the FilesInUse dialog will be used. But since I do unattended/installs from a service, that doesn't sound useful - since it seems that would freeze the installation waiting for the input which can never come. Unless of course some other option (on the command line? a property?) works to automatically answer the dialog with a shut down the process type answer. But that's precisely what I don't see explained - least of all on that page. Is it buried somewhere else? In fact I already use the property in question, so maybe this is exactly opposite? Hm, for some reason I have MSIRMSHUTDOWN = 2 set as well. Maybe that's wrong. As for the Restart Manager APIs, I found on my own aa373682, which explains how to register applications to automatically be shutdown and restarted. That sounds promising, but how do I do that from WiX? Util:RestartResource ? I seem to have tried that in the past unsuccessfully. Keith Douglas Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada -Original Message- From: Marc Beaudry [mailto:mbeau...@matrox.com] Sent: April-24-14 4:04 PM To: 'General discussion about the WiX toolset.' Subject: Re: [WiX-users] Restart manager, services, unattended installs Hi Keith, Far from being an expert, but I am currently dealing with similar issues: Here is an Idea: Property Id=MSIRESTARTMANAGERCONTROL Value=Disable/ Also you can remove the FileInUse dialogs from within the WIX sources And lastly take a look at this: http://msdn.microsoft.com/en-us/library/aa373649(v=vs.85).aspx Hope this helps, Marc -Original Message- From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca] Sent: April-24-2014 3:07 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Restart manager, services, unattended installs We have a in house windows service installed by a WiX installer. Since our users on these remote systems are not administrators, this install is actually brokered by the same service. That is, msiexec is called by the service itself, and the installation is called with /quiet /norestart as we do not want the user to see anything nor to have the OS reboot immediately, as the user will be confused/lose work, etc. by this. Unfortunately under some circumstances the installation fails because the files from the service (e.g. its EXE and its remoting proxy library) are in use. I don't care if it takes a reboot to finish the installation; but I do want to ensure the files are eventually updated and the service continues working. What is the most reliable way to do this? I take it that if the installation were to be manual the FilesInUse dialog would do the trick, but with the unattended, SYSTEM brokered install this won't of course work. So what will click OK there and do the shutdown and restart of the service? Is it passable as a property in the installer itself? Thanks, Keith Douglas Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A
Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
I'm not really sure how to install it - Maybe I can't use ServiceInstall as the Arguments based on the doc is supposed to be used to start a service and not install a service as I'm trying to do. Next, I tried using service.bat install Tomcat7 to install Tomcat. It works fine in a command line but when I use the following CustomAction nothing happens. Am I using it correctly? Property Id=QtExecCmdLine Value=quot;C:\tomcat\bin\service.bat install Tomcat7quot;/ CustomAction Id=TomcatInstall BinaryKey=WixCA DllEntry=CAQuietExec Execute=immediate Return=check / CustomAction Id=TomcatInstall ExeCommand=quot;C:\tomcat\bin\service.bat install Tomcat7quot; Directory=TOMCAT_BIN_DIR Execute=immediate Return=asyncNoWait/ InstallExecuteSequence Custom Action=TomcatInstall After=InstallFiles/Custom /InstallExecuteSequence Thank you -Original Message- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: April-24-14 12:45 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Do you know how you are supposed to install Tomcat as a service? If that -install option is what actually installs Tomcat as an NT service, then you shouldn't be using ServiceInstall because that installs it as a service too. --- Phil Wilson On Thu, Apr 24, 2014 at 9:06 AM, Pavan Konduru pavan.kond...@accelrys.com wrote: Put the arguments under quot, something like this: Arguments=quot;//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stopquot;/ Also paste the log from where the service is being created, it will help! --Pavan -Original Message- From: Eric Chaland [mailto:echal...@yahoo.com] Sent: Thursday, April 24, 2014 8:25 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Hello, I'm starting to use Wix to create an installer for our application. I need to install Tomcat 7 and deploy some wars in the background. I'm having difficulties starting the Tomcat service. I couldn't find any sample online. I hope someone can help me out as I am currently stuck. This is that I use to create and start the Tomcat 7 service. When I run the service gets installed but it get stuck on Starting Services. Is there anything wrong in the code below. I used the start command from the Apache site. Thank you for your help. Fragment Component Id=CPMTomcatService Guid=MyGUI Directory=TOMCAT_BIN_DIR File Id=TomcatEXE KeyPath=yes Source=$(var.tomcatDirectory)\bin\tomcat7.exe / ServiceInstall Id=TomcatServiceService Name=Tomcat7 DisplayName=Apache Tomcat7 Start=auto ErrorControl=normal Type=ownProcess Vital=yes Arguments=//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop/ ServiceControl Id=TomcatServiceCTRL Name=Tomcat7 Start=install Stop=both Remove=uninstall Wait=yes / /Component /Fragment Zac -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net
Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar basti...@careercontrol.nl. -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
CAQuietExec action should be immediate which is correct but the action using it must be deferred. Like this: Property Id=QtExecCmdLine Value=quot;C:\tomcat\bin\service.bat install Tomcat7quot;/ CustomAction Id=TomcatInstall_Cmd BinaryKey=WixCA DllEntry=CAQuietExec Execute=immediate Return=check / CustomAction Id=TomcatInstall ExeCommand=quot;C:\tomcat\bin\service.bat install Tomcat7quot; Directory=TOMCAT_BIN_DIR Execute=deferred Return=asyncNoWait/ InstallExecuteSequence Custom Action= TomcatInstall_Cmd Before= TomcatInstall/Custom Custom Action=TomcatInstall After=InstallFiles/Custom /InstallExecuteSequence -Original Message- From: Eric Chaland [mailto:echal...@yahoo.com] Sent: Thursday, April 24, 2014 2:58 PM To: 'General discussion about the WiX toolset.' Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample I'm not really sure how to install it - Maybe I can't use ServiceInstall as the Arguments based on the doc is supposed to be used to start a service and not install a service as I'm trying to do. Next, I tried using service.bat install Tomcat7 to install Tomcat. It works fine in a command line but when I use the following CustomAction nothing happens. Am I using it correctly? Property Id=QtExecCmdLine Value=quot;C:\tomcat\bin\service.bat install Tomcat7quot;/ CustomAction Id=TomcatInstall BinaryKey=WixCA DllEntry=CAQuietExec Execute=immediate Return=check / CustomAction Id=TomcatInstall ExeCommand=quot;C:\tomcat\bin\service.bat install Tomcat7quot; Directory=TOMCAT_BIN_DIR Execute=immediate Return=asyncNoWait/ InstallExecuteSequence Custom Action=TomcatInstall After=InstallFiles/Custom /InstallExecuteSequence Thank you -Original Message- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: April-24-14 12:45 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Do you know how you are supposed to install Tomcat as a service? If that -install option is what actually installs Tomcat as an NT service, then you shouldn't be using ServiceInstall because that installs it as a service too. --- Phil Wilson On Thu, Apr 24, 2014 at 9:06 AM, Pavan Konduru pavan.kond...@accelrys.com wrote: Put the arguments under quot, something like this: Arguments=quot;//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stopquot;/ Also paste the log from where the service is being created, it will help! --Pavan -Original Message- From: Eric Chaland [mailto:echal...@yahoo.com] Sent: Thursday, April 24, 2014 8:25 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Hello, I'm starting to use Wix to create an installer for our application. I need to install Tomcat 7 and deploy some wars in the background. I'm having difficulties starting the Tomcat service. I couldn't find any sample online. I hope someone can help me out as I am currently stuck. This is that I use to create and start the Tomcat 7 service. When I run the service gets installed but it get stuck on Starting Services. Is there anything wrong in the code below. I used the start command from the Apache site. Thank you for your help. Fragment Component Id=CPMTomcatService Guid=MyGUI Directory=TOMCAT_BIN_DIR File Id=TomcatEXE KeyPath=yes Source=$(var.tomcatDirectory)\bin\tomcat7.exe / ServiceInstall Id=TomcatServiceService Name=Tomcat7 DisplayName=Apache Tomcat7 Start=auto ErrorControl=normal Type=ownProcess Vital=yes Arguments=//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop/ ServiceControl Id=TomcatServiceCTRL Name=Tomcat7 Start=install Stop=both Remove=uninstall Wait=yes / /Component /Fragment Zac -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Start Your Social Network Today - Download eXo Platform Build your Enterprise
Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
Sorry, here is the Installexecute sequence: InstallExecuteSequence Custom Action= TomcatInstall Before= TomcatInstall_Cmd /Custom Custom Action= TomcatInstall_Cmd After=InstallFiles/Custom /InstallExecuteSequence -Original Message- From: Pavan Konduru [mailto:pavan.kond...@accelrys.com] Sent: Thursday, April 24, 2014 3:21 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample CAQuietExec action should be immediate which is correct but the action using it must be deferred. Like this: Property Id=QtExecCmdLine Value=quot;C:\tomcat\bin\service.bat install Tomcat7quot;/ CustomAction Id=TomcatInstall_Cmd BinaryKey=WixCA DllEntry=CAQuietExec Execute=immediate Return=check / CustomAction Id=TomcatInstall ExeCommand=quot;C:\tomcat\bin\service.bat install Tomcat7quot; Directory=TOMCAT_BIN_DIR Execute=deferred Return=asyncNoWait/ InstallExecuteSequence Custom Action= TomcatInstall_Cmd Before= TomcatInstall/Custom Custom Action=TomcatInstall After=InstallFiles/Custom /InstallExecuteSequence -Original Message- From: Eric Chaland [mailto:echal...@yahoo.com] Sent: Thursday, April 24, 2014 2:58 PM To: 'General discussion about the WiX toolset.' Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample I'm not really sure how to install it - Maybe I can't use ServiceInstall as the Arguments based on the doc is supposed to be used to start a service and not install a service as I'm trying to do. Next, I tried using service.bat install Tomcat7 to install Tomcat. It works fine in a command line but when I use the following CustomAction nothing happens. Am I using it correctly? Property Id=QtExecCmdLine Value=quot;C:\tomcat\bin\service.bat install Tomcat7quot;/ CustomAction Id=TomcatInstall BinaryKey=WixCA DllEntry=CAQuietExec Execute=immediate Return=check / CustomAction Id=TomcatInstall ExeCommand=quot;C:\tomcat\bin\service.bat install Tomcat7quot; Directory=TOMCAT_BIN_DIR Execute=immediate Return=asyncNoWait/ InstallExecuteSequence Custom Action=TomcatInstall After=InstallFiles/Custom /InstallExecuteSequence Thank you -Original Message- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: April-24-14 12:45 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Do you know how you are supposed to install Tomcat as a service? If that -install option is what actually installs Tomcat as an NT service, then you shouldn't be using ServiceInstall because that installs it as a service too. --- Phil Wilson On Thu, Apr 24, 2014 at 9:06 AM, Pavan Konduru pavan.kond...@accelrys.com wrote: Put the arguments under quot, something like this: Arguments=quot;//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stopquot;/ Also paste the log from where the service is being created, it will help! --Pavan -Original Message- From: Eric Chaland [mailto:echal...@yahoo.com] Sent: Thursday, April 24, 2014 8:25 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Hello, I'm starting to use Wix to create an installer for our application. I need to install Tomcat 7 and deploy some wars in the background. I'm having difficulties starting the Tomcat service. I couldn't find any sample online. I hope someone can help me out as I am currently stuck. This is that I use to create and start the Tomcat 7 service. When I run the service gets installed but it get stuck on Starting Services. Is there anything wrong in the code below. I used the start command from the Apache site. Thank you for your help. Fragment Component Id=CPMTomcatService Guid=MyGUI Directory=TOMCAT_BIN_DIR File Id=TomcatEXE KeyPath=yes Source=$(var.tomcatDirectory)\bin\tomcat7.exe / ServiceInstall Id=TomcatServiceService Name=Tomcat7 DisplayName=Apache Tomcat7 Start=auto ErrorControl=normal Type=ownProcess Vital=yes Arguments=//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop/ ServiceControl Id=TomcatServiceCTRL Name=Tomcat7 Start=install Stop=both Remove=uninstall Wait=yes / /Component /Fragment Zac -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source
Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
Thanks for the reply, however nothing gets run - I checked in the log file generated by the msi but I don't see any error or entry for the cmd.exe. I tried the following but still to no avail - I'm sure I'm not the only one trying to install Tomcat service part as a background task - Thanks to share any sample code or idea on what I might still be doing wrong Fragment Property Id=QtExecCmdLine Value='[System64Folder]cmd.exe C:\tomcat\bin\service.bat install Tomcat7'/ CustomAction Id=TomcatInstall_Cmd BinaryKey=WixCA DllEntry=CAQuietExec Execute=immediate Return=check / CustomAction Id=TomcatInstall ExeCommand='[System64Folder]cmd.exe C:\tomcat\bin\service.bat install Tomcat7' Directory=TOMCAT_BIN Execute=deferred Return=asyncNoWait/ InstallExecuteSequence Custom Action=TomcatInstall_Cmd Before=TomcatInstall/Custom Custom Action=TomcatInstall After=InstallFiles/Custom /InstallExecuteSequence /Fragment -Original Message- From: Pavan Konduru [mailto:pavan.kond...@accelrys.com] Sent: April-24-14 6:21 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample CAQuietExec action should be immediate which is correct but the action using it must be deferred. Like this: Property Id=QtExecCmdLine Value=quot;C:\tomcat\bin\service.bat install Tomcat7quot;/ CustomAction Id=TomcatInstall_Cmd BinaryKey=WixCA DllEntry=CAQuietExec Execute=immediate Return=check / CustomAction Id=TomcatInstall ExeCommand=quot;C:\tomcat\bin\service.bat install Tomcat7quot; Directory=TOMCAT_BIN_DIR Execute=deferred Return=asyncNoWait/ InstallExecuteSequence Custom Action= TomcatInstall_Cmd Before= TomcatInstall/Custom Custom Action=TomcatInstall After=InstallFiles/Custom /InstallExecuteSequence -Original Message- From: Eric Chaland [mailto:echal...@yahoo.com] Sent: Thursday, April 24, 2014 2:58 PM To: 'General discussion about the WiX toolset.' Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample I'm not really sure how to install it - Maybe I can't use ServiceInstall as the Arguments based on the doc is supposed to be used to start a service and not install a service as I'm trying to do. Next, I tried using service.bat install Tomcat7 to install Tomcat. It works fine in a command line but when I use the following CustomAction nothing happens. Am I using it correctly? Property Id=QtExecCmdLine Value=quot;C:\tomcat\bin\service.bat install Tomcat7quot;/ CustomAction Id=TomcatInstall BinaryKey=WixCA DllEntry=CAQuietExec Execute=immediate Return=check / CustomAction Id=TomcatInstall ExeCommand=quot;C:\tomcat\bin\service.bat install Tomcat7quot; Directory=TOMCAT_BIN_DIR Execute=immediate Return=asyncNoWait/ InstallExecuteSequence Custom Action=TomcatInstall After=InstallFiles/Custom /InstallExecuteSequence Thank you -Original Message- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: April-24-14 12:45 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Do you know how you are supposed to install Tomcat as a service? If that -install option is what actually installs Tomcat as an NT service, then you shouldn't be using ServiceInstall because that installs it as a service too. --- Phil Wilson On Thu, Apr 24, 2014 at 9:06 AM, Pavan Konduru pavan.kond...@accelrys.com wrote: Put the arguments under quot, something like this: Arguments=quot;//IS//Tomcat7 -DisplayName 'Apache Tomcat7' -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stopquot;/ Also paste the log from where the service is being created, it will help! --Pavan -Original Message- From: Eric Chaland [mailto:echal...@yahoo.com] Sent: Thursday, April 24, 2014 8:25 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample Hello, I'm starting to use Wix to create an installer for our application. I need to install Tomcat 7 and deploy some wars in the background. I'm having difficulties starting the Tomcat service. I couldn't find any sample online. I hope someone can help me out as I am currently stuck. This is that I use to create and start the Tomcat 7 service. When I run the service gets installed but it get stuck on Starting Services. Is there anything wrong in the code below. I used the start command from the Apache site. Thank you for your help. Fragment Component Id=CPMTomcatService Guid=MyGUI Directory=TOMCAT_BIN_DIR File Id=TomcatEXE KeyPath=yes Source=$(var.tomcatDirectory)\bin\tomcat7.exe / ServiceInstall Id=TomcatServiceService Name=Tomcat7 DisplayName=Apache Tomcat7 Start=auto ErrorControl=normal
Re: [WiX-users] Queries on Upgrade
Ohh. That is logical. But please tell me in this case when there is an upgrade (which I believe is done based on Upgrade code), installer will look into HKUSERS for Upgrade code (Existing product) and not in HKLM? Aparna Karkare LT Infotech OAI-sys, Enterprise Components and Frameworks Office: 020-6641-6142 Email: akark...@travelers.com -Original Message- From: Gabriel Ivanes [mailto:g...@fastmail.net] Sent: Thursday, April 24, 2014 10:57 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Queries on Upgrade That's why you didn't find it in HKLM. It's published in HKUSERS\{SID from user which installed the product}. Le Jeu 24 Avril 2014, à 14:44, Karkare,Aparna a écrit : Hi Gabriel, 1. InstallScope=perUser 2 and 3 are resolved. I implemented Upgrade and MajorUpgrade both with AllowSameVersionUpgrades =yes. Can you please explain about 1st point? Thanks for your reply. Aparna Karkare LT Infotech OAI-sys, Enterprise Components and Frameworks Office: 020-6641-6142 Email: [1]akark...@travelers.com -Original Message- From: Gabriel Ivanes [[2]mailto:g...@fastmail.net] Sent: Thursday, April 24, 2014 8:00 AM To: [3]wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Queries on Upgrade Good day, 1. What's your installation context ? User or Machine ? 2. Your condition seem ok if UPGRADINGPRODUCTCODE is the right property. 3. What's your need ? Check your msi with [1]InstEd. It's always instructive. Le Jeu 24 Avril 2014, à 12:37, Karkare,Aparna a écrit : Hello, I am stuck with Upgrade (remove any previous version) issues with WiX. I am framing my questions below which I feel might help me if answered. Thank you for your replies in advance. 1. Product Id = * and there is a GUID in Upgrade Code. Still whenever I install my product, there is no entry for Upgrade Code is found in Registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall OR HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersio n\Uninstall) rather a new Product Id (a new random GUID) is found as a new registry key. I have read many blogs and people say that they find a new registry key corresponding to Upgrade Code in their registry not Product code. If this is the case then how 'Upgrade' is supposed to work? 2. I have many custom actions. I want a set of custom actions only when product is installed for the first time so I have given condition as ((NOT Installed) AND (NOT UPGRADINGPRODUCTCODE)) however when I run next version msi on top of some existing version, these custom actions still get executed. I did verbose logging and saw that 'Related Products' are found and yet 'NOT Installed' property condition doesn't seem to work. 3. Can we have MajorUpgrade and Upgrade in same file while scheduling RemoveExistingProducts explicitly? I am getting compiler error if I do so. I know that MajorUpgrade schedules 'RemoveExistingProducts' by default so if I don't schedule 'RemoveExistingProducts' explicitly then will the Upgrade work? Any idea anyone? Need help desperately. Aparna Karkare LT Infotech OAI-sys[2][4]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Po rtf olios/Architecture/Components/index.aspx, Enterprise Components and Frameworks Office: 020-6641-6142 Email: [3][5]akark...@travelers.com[4][6]mailto:akark...@travelers.com This communication, including attachments, is confidential, may be subject to legal privileges, and is intended for the sole use of the addressee. Any use, duplication, disclosure or dissemination of this communication, other than by the addressee, is prohibited. If you have received this communication in error, please notify the sender immediately and delete or destroy this communication and all copies. TRVDiscDefault::1201 --- --- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform [5][7]http://p.sf.net/sfu/ExoPlatform ___ WiX-users mailing list [6][8]WiX-users@lists.sourceforge.net [7][9]https://lists.sourceforge.net/lists/listinfo/wix-users -- Sincerely, 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 References 1. [10]http://www.instedit.com/ 2. [11]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portfolios/A rchitecture/Components/index.aspx 3. [12]mailto:akark...@travelers.com 4. [13]mailto:akark...@travelers.com