Classification: Public
Chatra,
I ended up creating a custom action since WIX doesn't have that element...
<CustomAction Id="CA_Set_ENABLE32BITAPPPOOL"
Property="CA_ENABLE32BITAPPPOOL" Value="[WEB_SITE_NAME]|"/>
<CustomAction Id="CA_ENABLE32BITAPPPOOL" BinaryKey="BIN_CustomAction"
DllEntry="Enable32BitApplicationPool" Impersonate="no" Execute="deferred"
Return="ignore"/>
<UI>
<ProgressText Action="CA_ENABLE32BITAPPPOOL">CA: Setting
enable32BitAppOnWin64 for application Pool...</ProgressText>
</UI>
<Custom Action="CA_Set_ENABLE32BITAPPPOOL" After="CostFinalize">NOT
Installed</Custom> <Custom Action="CA_ENABLE32BITAPPPOOL"
Before="RegisterUser">NOT Installed</Custom>
/// <summary>
/// Enable32BitApplicationPool sets the App Pool property
enable32BitAppOnWin64
/// true or false depending on the bit of the OS
/// </summary>
/// <param name="session">Session session</param>
/// <returns>return ActionResult.Success</returns>
[CustomAction]
public static ActionResult Enable32BitApplicationPool(Session session)
{
try
{
if (session == null)
{
throw new ArgumentNullException("session");
}
string tempString = GetSessionProperty(session,
"CustomActionData", false);
string[] parts = tempString.Split(new[] { '|' });
string applicationPool = parts[0];
const string Quote = "\"";
string cmdLineParameters = "set apppool /apppool.name:" + Quote
+ applicationPool + Quote + " /enable32BitAppOnWin64:false";
var cmdLineExe =
Environment.GetFolderPath(Environment.SpecialFolder.System) +
"\\inetsrv\\appcmd.exe";
// Prepare the process to run
var startInfo = new ProcessStartInfo
{
UseShellExecute = true,
Arguments = cmdLineParameters,
FileName = cmdLineExe,
WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true
};
// Run the external process & wait for it to finish
using (Process proc = Process.Start(startInfo))
{
proc.WaitForExit();
}
}
catch (Exception ex)
{
WriteErrorLogInstall(session, "Enable32BitApplicationPool
failed: ", ex, true);
}
return ActionResult.Success;
}
-----Original Message-----
From: chennam [mailto:[email protected]]
Sent: June-14-13 4:39 PM
To: [email protected]
Subject: [WiX-users] App-pool creation
Hi,
When App-pool is created with the <iis:WebAppPool/>; by default "Enable
32-bit Application" is set to "True" .Just want to know how can I change this
setting to "False" while Creating the App-pool.
Thanks in Advance
Chatra
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/App-pool-creation-tp7586553.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
This message has been marked as Public by Steven Ogilvie on June-14-13 4:52:40
PM.
The above classification labels were added to the message by TITUS Message
Classification.
For more information visit www.titus.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users