How do you know that InetPub will be there? It could be moved around. Really, you'd should use a DirectorySearch to find the file. However, even better would be to add the necessary code to the WiX IIS CustomAction so that you'd get rollback and uninstall and all the other nasty things for free, instead of having to try and create that using the adsutil.vbs script.
VBScript is a lousy way to build a robust setup anyway. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Fesh Sent: Thursday, January 11, 2007 9:25 AM To: WiX-users Subject: [WiX-users] Another quick question: Locating %SYSTEMDRIVE%? Hello all: Hit another roadblock here, and I've not been able to come up with the right combination of keywords that would get me to the answer. Basically, I need to find the value of %SYSTEMDRIVE% while the install is running so I can pass it to a custom action. The objective here is actually to run "cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1" as a custom action since at the moment I don't know of a better way to get 64-bit IIS to run 32-bit binaries out of the box... Does anyone have a suggestion on the best way to do this? -- -- Eric Fesh Customer Support Engineer/Software Test Engineer Verari Systems Software, Inc. 110 12th Street North, Suite D103 Birmingham, AL 35203 Phone +1-205-397-3141 ext. 3149 Fax +1-205-397-3142 [EMAIL PROTECTED] http://www.verarisoft.com/ The information contained in this communication may be confidential and is intended only for the use of the recipient(s) named above. If the reader of this communication is not the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you are not a named recipient or received this communication by mistake, please notify the sender and delete the communication and all copies of it. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users