Hey all, I hope someone can help me out here I am banging my head on this one...
A little history, I have a Web Server installer that creates a Web App Pool and a Web Site. I have a Welcome, License, Choose DB, Choose Web Site info etc...pages in my UI In the Web Site info I have an edit box for the Web Site port number, if the port is in use I bring display an warning to change the port number (used by web site/app pool) call it "xxxx" On an upgrade I display a message to the user to ask if they want to upgrade or not. if yes I continue and I want to stop the web app pool and the web site to free up the port. because on the Web Site Info page if the port is the same and the web site and web app pool is in "start" mode it is in use, so I want to stop that so the web site port number is okay. I am using two custom action to stop the app pool/web site: <CustomAction Id="CA_Set_UPGRADE_APPPOOL" Property="CA_UPGRADE_APPPOOL" Value=""[SystemFolder]inetsrv\appcmd.exe" stop apppool /apppool.name:"[WEB_SITE_NAME]""/> <CustomAction Id="CA_UPGRADE_APPPOOL" BinaryKey="WixCA" DllEntry="$(var.PlatformCAQuietExecDLLEntry)" Execute="immediate" Return="ignore"/> <CustomAction Id="CA_Set_UPGRADE_WEBSITE" Property="CA_UPGRADE_WEBSITE" Value=""[SystemFolder]inetsrv\appcmd.exe" stop site "[WEB_SITE_NAME]""/> <CustomAction Id="CA_UPGRADE_WEBSITE" BinaryKey="WixCA" DllEntry="$(var.PlatformCAQuietExecDLLEntry)" Execute="immediate" Return="ignore"/> <InstallUISequence> <Custom Action="CA_Set_UPGRADE_APPPOOL" After="CostFinalize">WIX_UPGRADE_DETECTED</Custom> <Custom Action="CA_Set_UPGRADE_WEBSITE" After="CostFinalize">WIX_UPGRADE_DETECTED</Custom> <Custom Action="CA_UPGRADE_APPPOOL" After="MigrateFeatureStates">WIX_UPGRADE_DETECTED</Custom> <Custom Action="CA_UPGRADE_WEBSITE" After="MigrateFeatureStates">WIX_UPGRADE_DETECTED</Custom> The custom actions run by there is an error that it couldn't read the command line parameters even though they are show, what am I doing wrong? Log results: Action ended 17:13:13: CostFinalize. Return value 1. MSI (c) (48:A0) [17:13:13:913]: Doing action: CA_Set_UPGRADE_APPPOOL Action 17:13:13: CA_Set_UPGRADE_APPPOOL. Action start 17:13:13: CA_Set_UPGRADE_APPPOOL. MSI (c) (48:A0) [17:13:13:913]: PROPERTY CHANGE: Adding CA_UPGRADE_APPPOOL property. Its value is '"C:\Windows\SysWOW64\inetsrv\appcmd.exe" stop apppool /apppool.name:"TITUS Web Administration"'. Action ended 17:13:13: CA_Set_UPGRADE_APPPOOL. Return value 1. MSI (c) (48:A0) [17:13:13:913]: Doing action: CA_Set_UPGRADE_WEBSITE Action 17:13:13: CA_Set_UPGRADE_WEBSITE. Action start 17:13:13: CA_Set_UPGRADE_WEBSITE. MSI (c) (48:A0) [17:13:13:913]: PROPERTY CHANGE: Adding CA_UPGRADE_WEBSITE property. Its value is '"C:\Windows\SysWOW64\inetsrv\appcmd.exe" stop site "TITUS Web Administration"'. Action ended 17:13:13: CA_Set_UPGRADE_WEBSITE. Return value 1. Action ended 17:13:20: MigrateFeatureStates. Return value 1. MSI (c) (48:A0) [17:13:20:209]: Doing action: CA_UPGRADE_APPPOOL Action start 17:13:20: CA_UPGRADE_APPPOOL. MSI (c) (48:A0) [17:13:20:209]: Creating MSIHANDLE (20) of type 790542 for thread 2976 MSI (c) (48:CC) [17:13:20:209]: Invoking remote custom action. DLL: C:\Users\ADMINI~1.DEV\AppData\Local\Temp\MSIBF85.tmp, Entrypoint: CAQuietExec MSI (c) (48!34) [17:13:20:241]: Creating MSIHANDLE (21) of type 790541 for thread 3124 MSI (c) (48!34) [17:13:20:241]: Creating MSIHANDLE (22) of type 790531 for thread 3124 CAQuietExec: Entering CAQuietExec in C:\Users\ADMINI~1.DEV\AppData\Local\Temp\MSIBF85.tmp, version 3.7.1224.0 MSI (c) (48!34) [17:13:20:241]: Closing MSIHANDLE (22) of type 790531 for thread 3124 MSI (c) (48!34) [17:13:20:241]: Creating MSIHANDLE (23) of type 790531 for thread 3124 CAQuietExec: Error 0x80070057: failed to get command line data MSI (c) (48!34) [17:13:20:241]: Closing MSIHANDLE (23) of type 790531 for thread 3124 MSI (c) (48!34) [17:13:20:241]: Creating MSIHANDLE (24) of type 790531 for thread 3124 CAQuietExec: Error 0x80070057: failed to get Command Line MSI (c) (48!34) [17:13:20:241]: Closing MSIHANDLE (24) of type 790531 for thread 3124 MSI (c) (48!34) [17:13:20:241]: Closing MSIHANDLE (21) of type 790541 for thread 3124 CustomAction CA_UPGRADE_APPPOOL returned actual error code 1603 but will be translated to success due to continue marking MSI (c) (48:CC) [17:13:20:241]: Closing MSIHANDLE (20) of type 790542 for thread 2976 Action ended 17:13:20: CA_UPGRADE_APPPOOL. Return value 1. MSI (c) (48:A0) [17:13:20:241]: Doing action: CA_UPGRADE_WEBSITE Action start 17:13:20: CA_UPGRADE_WEBSITE. MSI (c) (48:A0) [17:13:20:241]: Creating MSIHANDLE (25) of type 790542 for thread 2976 MSI (c) (48:9C) [17:13:20:241]: Invoking remote custom action. DLL: C:\Users\ADMINI~1.DEV\AppData\Local\Temp\MSIBFA5.tmp, Entrypoint: CAQuietExec MSI (c) (48!54) [17:13:20:381]: Creating MSIHANDLE (26) of type 790541 for thread 3412 MSI (c) (48!54) [17:13:20:397]: Creating MSIHANDLE (27) of type 790531 for thread 3412 CAQuietExec: Entering CAQuietExec in C:\Users\ADMINI~1.DEV\AppData\Local\Temp\MSIBFA5.tmp, version 3.7.1224.0 MSI (c) (48!54) [17:13:20:397]: Closing MSIHANDLE (27) of type 790531 for thread 3412 MSI (c) (48!54) [17:13:20:397]: Creating MSIHANDLE (28) of type 790531 for thread 3412 CAQuietExec: Error 0x80070057: failed to get command line data MSI (c) (48!54) [17:13:20:397]: Closing MSIHANDLE (28) of type 790531 for thread 3412 MSI (c) (48!54) [17:13:20:397]: Creating MSIHANDLE (29) of type 790531 for thread 3412 CAQuietExec: Error 0x80070057: failed to get Command Line MSI (c) (48!54) [17:13:20:397]: Closing MSIHANDLE (29) of type 790531 for thread 3412 MSI (c) (48!54) [17:13:20:397]: Closing MSIHANDLE (26) of type 790541 for thread 3412 CustomAction CA_UPGRADE_WEBSITE returned actual error code 1603 but will be translated to success due to continue marking MSI (c) (48:9C) [17:13:20:397]: Closing MSIHANDLE (25) of type 790542 for thread 2976 Action ended 17:13:20: CA_UPGRADE_WEBSITE. Return value 1. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Help-Custom-Action-not-working-in-InstallUISequence-tp7591330.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users