Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.
Endpoint Management Community Blog

Creating a "Fake Drive" for Application Installs that Require One

Created: 08 May 2008 • Updated: 08 May 2008 • 3 comments
TilakGovind's picture
0 0 Votes
Login to vote

There are cases where an application needs access to a drive like H: to complete the installation of an application. Since, for example, you might be working on a VMware machine using a local user account.

Here's a trick to help you overcome this obstacle.

Instead of mapping your drive to a production drive, you can fake a drive on the machine using the Subst.exe command. You can fake an existing folder on the machine as a drive.

For creating an H: drive

  • Create a folder under "C:" eg. C:\test
  • Then use this command at command prompt:
    subst H: C:\test

Open My computer and you will see an H: drive there.

Comments 3 CommentsJump to latest comment

R-Vijay's picture

In many cases, H:\ is always given for the user data folders..(For eg: Documents and Settings\user)

This CA in execute immediate is always used to continue the installation only if the H:\ exists. In real time scenario, when the package gets deployed and every user installs it, he will be having a H:\ for persuing the installation. Hence, there is a real no need for substituting the drive as an end user.

However, it may be useful when we test the MSI package in a machine admin user, where he doesnt have any profile access or drive.


Microsoft MVP [Setup-Deploy]

Login to vote
DustyPete's picture

Beware about using subst on a Windows Vista. If created within non-elevated privileges, chances are your install (which is using elevated privileges hopefully) won't be able to access (or even see) it.

Login to vote
piyushnasa's picture

You can also map a fake drive with net.exe
You can use command
net use H: \\{the computer name}\c$\test
net.exe resides in system32 folder and can be easily used.

Piyush Nasa Altiris Certified Professional (ACP)

Login to vote