Page 1 of 1
SystemDrive on Vista
Posted: Mon Apr 02, 2007 11:51 am
by manso
Hi,
When installing on Vista the variable %SystemDrive% is not resolved to the drive. We use:
Get Folder Location WWW->WWWRoot into WWWROOTDIR
which becomes "%SystemDrive%\\Inetpub\\wwwroot" on Vista but not on XP/2003.
Do you have any solution to this?
Thanks,
- Manso
Posted: Mon Apr 02, 2007 1:08 pm
by MichaelNesmith
Use the Extract Path command on the Windows path to obtain the drive.
Posted: Mon Apr 02, 2007 2:26 pm
by manso
The problem is that WWW->WWWRoot returns %SystemDrive% embedded in the path.
The registry key
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\InetStp\\PathWWWRoot
is %SystemDrive%\\inetpub\\wwwroot on Vista and C:\\Inetpub\\wwwroot on pre-Vista versions and apparently InstallAware and/or MSI doesn't like that.
Is this something you can fix or look into? The workaround is a bit tricky as we can't work out the drive to do a string replacement.
Thanks,
- Manso[/b]
Posted: Mon Apr 02, 2007 4:24 pm
by neillans
You shouldnt need to - simply run Extract Path on the variable that contains the result and it should expand it for you.
Posted: Tue Apr 03, 2007 7:30 am
by manso
I'm running the following:
Get Folder Location WWW->WWWRoot into WWWROOTDIR
Extract File Folder: WWWROOTDIR
MessageBox: Msg, $WWWROOTDIR$
And %SystemDrive%\\inetpub\\wwwroot is returned. Any other ideas?
Thanks,
Manso
Posted: Thu May 03, 2007 3:35 am
by isf
I'm having this problem too. Is there any solution available?
Thanks.
Regards,
paulo
Posted: Thu May 03, 2007 4:49 pm
by MichaelNesmith
How about doing a substitution of the environment variable, using the Get Variable command?