How to create multiple shorcuts to the same target
Posted: Mon Aug 16, 2010 1:19 pm
Hi,
My installer needs to create a shortcut (to the same target file) in each of the Photoshop's Plug-ins directory. See the following code example:
Only the last Create Shortcut actually did the creation. The first two did not create any shortcut (all three registry keys exist and have valid values).
Also, I would like to use Goto Label command to do a loop, but it does not allow defining label inside conditional statement.
Thanks,
My installer needs to create a shortcut (to the same target file) in each of the Photoshop's Plug-ins directory. See the following code example:
Code: Select all
Read Registry Key HKLM\SOFTWARE\Adobe\Photoshop\10.0\PluginPath\ into PSPLUGINDIR
if Variable PSPlUGINDIR not Equals
Create Shortcut $PSPLUGINDIR$\myplugin to $TARGETDIR$\Plugins\myplugin
end
Read Registry Key HKLM\SOFTWARE\Adobe\Photoshop\11.0\PluginPath\ into PSPLUGINDIR
if Variable PSPlUGINDIR not Equals
Create Shortcut $PSPLUGINDIR$\myplugin to $TARGETDIR$\Plugins\myplugin
end
Read Registry Key HKLM\SOFTWARE\Adobe\Photoshop\12.0\PluginPath\ into PSPLUGINDIR
if Variable PSPlUGINDIR not Equals
Create Shortcut $PSPLUGINDIR$\myplugin to $TARGETDIR$\Plugins\myplugin
end
Also, I would like to use Goto Label command to do a loop, but it does not allow defining label inside conditional statement.
Thanks,