/build/static/layout/Breadcrumb_cap_w.png

custom action needs cmd to use unc to find bat file

Hey All,

I would like to say I found this site has been immensely helpful in my quest to bring myself up to adaquet deployment skillset, having said that I have a new issue I'm hoping somebody can offer some guidance. I have a bat file that is being called up via an exe custom action in installshield, prior to today I had it set with a drive letter (W:) when I hosted the msi through SCCM, I found drive letters dont get mapped and are thusly useless in my msi, so I switched to server unc paths, which worked fine until I tried to call the bat. Due to the bat being stored on a network drive, and cmd not liking unc pathing, I am stuck. I had read about pushd, but as the bat file in question only uses local drives it's not really applicable, as I need cmd to map TO the bat file.

Any thoughts?

TIA

 

 

 


0 Comments   [ + ] Show comments

Answers (1)

Posted by: jaybee96 12 years ago
Red Belt
2

1. Create a custom action to "temporary" create the W drive to the UNC path. 

2. run the exe

3. Create Custom Action to remove the temporary W drive.

 

 

 


Comments:
  • net use w: \\sever\share /user:username password
    w: file to run
    net use w: /delete - SMal.tmcc 12 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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