Hi,
How do I map a drive using InstallShield 6 or up?
Using launchappandwait doesn't give me the error codes.
LaunchAppAndWait(WINSYSDIR^"net.exe", " use "+szMapDrive+" "+szUserPass+" /USER:"+szUserName+"
/PERSISTENT:YES",WAIT);
Thanks in advance
Kizhakk
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

how to map a drive in InstallScript
Started by
kizhakk
, Aug 05 2004 18:59
3 replies to this topic
Posted 06 August 2004 - 04:36
Maybe you can run a shell command using the: net use \\computer\share command? I don't have any sample code for you though.
Regards
-Stein Åsmul
-Stein Åsmul
Posted 06 August 2004 - 11:16
Hi,
Thanks for replying...
But as I said before, running the shell command doesn't give me any error codes in the event of an error.
I think I may need to call APIs from mpr.dll to get the error codes....
-Kizhakk
Thanks for replying...
But as I said before, running the shell command doesn't give me any error codes in the event of an error.
I think I may need to call APIs from mpr.dll to get the error codes....
-Kizhakk
Posted 06 August 2004 - 13:27
What about http://www.installsi...htm#LaunchAppEx instead of the original LaunchAppAndWait?
This will give you the return codes.
If "net" does not return the exit or error code, you may try a batch file, that returns errorlevel.
This will give you the return codes.
If "net" does not return the exit or error code, you may try a batch file, that returns errorlevel.
Gruß / regards
Thomas
Thomas