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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 12/26/2007 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
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.
Answered 12/26/2007 by: SeaWall
Senior Yellow Belt

Please log in to comment
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.
Answered 12/26/2007 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity