/build/static/layout/Breadcrumb_cap_w.png

How to map a drive in MSI?

I got an application where I need to Map Z drive to \\hubckr\kingdom\ and it is mentioned to do this without making users to LogOff and Login.

Please let me know how to do this in MSI using AdminStudio.

I know that we can use Net Use z:value in .bat file and is that okay

Thanks in Advance. 


0 Comments   [ + ] Show comments

Answers (3)

Posted by: rileyz 10 years ago
Red Belt
1

I dont know if you can map a drive with stock MSI actions.

You will be able to do it with a Custom Action though. Just use the same command as you would in cmd line.

See below, right click Custom Actions to add a new one.

Once you have created it, you will need to add it to your Execute Sequence.

Humm thinking about it now, this might not work - in the Execute Deferred sequence it runs a SYSTEM, so i dont know what the result would be.


Comments:
  • You can give "everyone" rights to the share so even a non-domain account could connect to it. We had to do this with early Zenworks for the machine to see the share. Remember this is dangerous, you have no security on the share so it wide open. - SMal.tmcc 10 years ago
Posted by: anonymous_9363 10 years ago
Red Belt
1

> i dont know what the result would be.
It would be that it wouldn't work! System has no access to network resources.

However, the sub-text here (surprise, surprise, we get no proper clue from the OP...) is that the application needs access to a Z: drive. In that case, I'd suggest that the drive-mapping logic belongs either in a log-in script or a script which launches the executable.

Posted by: jagadeish 10 years ago
Red Belt
0

Use Login script to map drives as suggested by VBScab

 
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