Jump to content


Photo

Map network drive for installing stuff!


  • Please log in to reply
1 reply to this topic

#1 Jonas

Jonas
  • Members
  • 2 posts

Posted 18 June 2012 - 09:26 PM

Hey, thanks for the grate tool!
So I am trying to Map a network drive and install software from the Map network drive!
If I do not compile the script it works good (.AHK)!
But after I compile it it will not work(.EXE)!
This is one of my first scripts I am a newbe so any help is much appreciated!
Script:

;Made by Mr. Jonas Voll June 13 2012 with AutoHotKey!
;This is to map a drive for the installation of Mass500 & install the program and all needed files!
CMD=net use B: \\envfs2\installs$
Run, %CMD%
;Creates the map drive with the drive letter of B!
RunWait,B:\Mas500_shr\Mas500 7.3\Client\setup.exe, Max,
;Core install software for Mass 500!
RunWait,B:\Mas500_shr\Mas500 7.3\Updates\client\730Feb10UpdateC.exe, Max,
;Installs client Update!
FileCopy, B:\Mas500_shr\Mas500 7.3\Updates\Hotfixes\unreg.bat, C:\Program Files\Sage Software\Sage MAS 500 Client\Managed Applications, 0
;Copies' .Bat to host pc!
;This line will need to be run after you have installed!
;This will not work if you do not have all the directories created!
;This folder already contains the file Unreg.bat at the present time I do not know how to tell the two (Old/New) apart!
RunWait,B:\Mas500_shr\Mas500 7.3\Envision\ParentCustomer\CustParentMaintSetup.msi, Max,
;Installs CustParentMaintSetup!
CMD=net use B: /delete
Run, %cmd%
;This will delete the mapped drive!


#2 gamax92

gamax92
  • Members
  • 410 posts

Posted 23 June 2012 - 06:10 PM

Try changing the Run commands to RunWait commands.