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?





0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



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.




Answered 11/08/2012 by: jaybee96
Red Belt

  • net use w: \\sever\share /user:username password
    w: file to run
    net use w: /delete
Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja