SystemDrive on Vista

Got a problem you cannot solve? Try here.
Post Reply
manso
Posts: 15
Joined: Wed Aug 23, 2006 9:47 am

SystemDrive on Vista

Post 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
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Use the Extract Path command on the Windows path to obtain the drive.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
manso
Posts: 15
Joined: Wed Aug 23, 2006 9:47 am

Post 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]
neillans
Posts: 536
Joined: Sat Nov 04, 2006 6:21 am
Location: Scottish Borders, UK

Post by neillans »

You shouldnt need to - simply run Extract Path on the variable that contains the result and it should expand it for you.
Andy Neillans
manso
Posts: 15
Joined: Wed Aug 23, 2006 9:47 am

Post 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
isf
Posts: 9
Joined: Tue Jul 04, 2006 4:40 pm

Post by isf »

I'm having this problem too. Is there any solution available?
Thanks.

Regards,
paulo
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

How about doing a substitution of the environment variable, using the Get Variable command?
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply