SystemDrive on Vista

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

SystemDrive on Vista

Postby manso » Mon Apr 02, 2007 11:51 am

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:

Postby MichaelNesmith » Mon Apr 02, 2007 1:08 pm

Use the Extract Path command on the Windows path to obtain the drive.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

manso
Posts: 15
Joined: Wed Aug 23, 2006 9:47 am

Postby manso » Mon Apr 02, 2007 2:26 pm

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
Contact:

Postby neillans » Mon Apr 02, 2007 4:24 pm

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

Postby manso » Tue Apr 03, 2007 7:30 am

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

Postby isf » Thu May 03, 2007 3:35 am

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:

Postby MichaelNesmith » Thu May 03, 2007 4:49 pm

How about doing a substitution of the environment variable, using the Get Variable command?
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 124 guests