/build/static/layout/Breadcrumb_cap_w.png

Mapping a drive from an msi package

Has anyone been able to create a custom action that maps a drive if it is not found. I keep getting 1720 errors.
This should be simple but I am stumped

0 Comments   [ + ] Show comments

Answers (3)

Posted by: aogilmor 16 years ago
9th Degree Black Belt
0
That's not something I'd generally recommend, but it should be possible.
How are you doing it? Batch file? vbscript?

1720 just means you're getting some sort of error so you'll have to find the error in your action and correct it.
Posted by: SeaWall 16 years ago
Senior Yellow Belt
0
i realize it is not a best practice but i need to be able to map a drive if the user is a system user. We install some user files to a p drive in a couple of apps. We need to be able to deploy remotely using the system account which does not have a p drive mapped. I am using an embedded vbs script but it does not appear to like the shell or network object. that is what the 1720 error messageis from.
Posted by: aogilmor 16 years ago
9th Degree Black Belt
0
Before you go any further, you definitely can't install user files on a network drive with an MSI. You can probably script a drive mapping/file copy in a custom action, but not with Windows Installer's InstallFiles action. It only works on local drives.

Secondly, if I were to do something like that I'd probably do a cmd shell rather than a vbscript, something like this,

"%comspec% /c "if not exist p:\*.* net use p: \\server\share ""

Third, you won't be able to map a network drive under system context unless you do a runas and provide a domain username/pw. Not sure of the feasibility of doing this in the MSI. Not real good security either.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ