cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
marcovdlinden
Level 4

LaunchApplication and mklink

Does anyone have experience how to run mklink /D from a installscript

With direcotry paramters that requrie "" due to white spaces in their names?

I can not figure out the proper LaunchApplication command

any help would be much apreciated.
Labels (1)
0 Kudos
(4) Replies
weakness
Level 6

It's may be different information you want.....

Why don't you see the example?

http://kb.flexerasoftware.com/doc/Helpnet/InstallShield2011/mergedProjects/installshield17langref/LangrefLaunchAppAndWait_example.htm

(LaunchAppAndwait function is a kind of alias of LaunchApplication)
0 Kudos
marcovdlinden
Level 4

Thx for the reply,
But I'm not having a problem with LaunchApp command its more that
MKLINK is not actually an application, but a shell command.

Further testing results in GetLasterror returning 2 (File not found).

So I'm unsure how I run this MKLINK from an installscript project.
0 Kudos
weakness
Level 6

Is the mklink a kind of shell command?

If so, you may want to use the following command line.

LaunchAppAndWait( WINSYSDIR^"cmd.exe","/c NOTEPAD",LAAW_OPTION_WAIT);


* replace NOTEPAD to shell command you want to invoke.
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

In InstallScript code, you'll want to prototype and call out to the Windows API directly. See CreateSymbolicLink Function for documentation on the API. Remember to use WSTRING instead of STRING unless you specifically call CreateSymbolicLinkA, and not to use this function on a platform before Windows Vista. There's some more information on calling Windows API functions in the online help.
0 Kudos