Jump to content


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.
Photo

how to map a drive in InstallScript


3 replies to this topic

kizhakk

kizhakk
  • Full Members
  • 5 posts

Posted 05 August 2004 - 18:59

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

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

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

kizhakk

kizhakk
  • Full Members
  • 5 posts

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

Perotin

Perotin
  • Full Members
  • 407 posts

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.
Gruß / regards
Thomas