Last post Oct 18, 2012 11:43 AM by FlorinGugui
May 01, 2008 03:21 PM|zheos|LINK
Hello there ! Im using Visual Studio 2008 and im trying to make a websetup for an application. I saw a new thing since VS2005, with a MSI created by VS2008 i can now "select" an application pool for the installation. By default, this setting is set to "DefaultAppPool".
My question is simple, is there any way to DISABLE this ? I mean, i dont want my user to CHOSE an application pool, my setup will create one for him in the custom actions.
For now my problem is that the MSI assign the application pool AFTER the custom actions (in wich i create a assign a predefined pool by calling a own made dll), by doing this after the custom actions, it will make a "undo" to what i did to the application
pool. Ie : i set the application pool to MyAppPoolTest in the custom actions but if the user select "DefaultAppPool" at the beginning of the msi , it will END with ""DefaultAppPool", whatever i did in the custom actions.
If there is no way to disable it, maybe there's some text somewhere that explain this new "feature" so i will understand it a bit more, or maybe one of you have some clue about what i should do.
May 14, 2009 02:07 PM|tkraft|LINK
I sure hope they change this is VS2010 because it has been a huge PITA.
The only way I have found to set this is to run the MSI from the command line and pass in the AppPool:
XYZZX.msi /qr /TARGETAPPPOOL="MyAppPoolName"
If someone knows how to write a custom action to override the AppPool setting, I'd love to hear about it.
see http://stackoverflow.com/questions/714309/virtual-directory-in-web-setup-project for more discussion.
web setup Project apppool
Nov 16, 2009 02:26 AM|g_enzoe|LINK
Have you tried setting the custom apppool in the 'AfterCommit' stage instead of 'Install' stage.
Ie in the custom action script, override the Commit and set the apppool there...
Its the same thing i had to when running a custom action to access an assembly I had put into the GAC folder. The GAC items are only available after the Commit stage. It could behave similarly for this?
just a suggestion...
Oct 18, 2012 11:43 AM|FlorinGugui|LINK
Your suggestion is very good. If the app pool is created and assigned in the Commit custom action it works as expected.