PDA

View Full Version : Shortcuts and forward slashes



NewsArchive
01-22-2010, 01:38 AM
I have a SetupBuilder script that creates a shortcut with the Target
field set as:
"%PROGRAMFILESDIR%\Microsoft Office\Office12\msaccess.exe" /excl
/runtime "%_SB_INSTALLDIR%\App.ade"

When I look at the actual shortcut created, the "/excl" and "/runtime"
parameter flags have been converted to "\excl" and "\runtime". That is,
the forward slashes are changed to backslashes.

Is there something special that needs to be done to keep the forward
slashes?

I'm using SetupBuilder Developer v7.0.2762.0.

-Kevin

NewsArchive
01-22-2010, 01:39 AM
Kevin,

> I have a SetupBuilder script that creates a shortcut with the Target
> field set as:
> "%PROGRAMFILESDIR%\Microsoft Office\Office12\msaccess.exe" /excl
> /runtime "%_SB_INSTALLDIR%\App.ade"
>
> When I look at the actual shortcut created, the "/excl" and "/runtime"
> parameter flags have been converted to "\excl" and "\runtime". That is,
> the forward slashes are changed to backslashes.
>
> Is there something special that needs to be done to keep the forward
> slashes?
>
> I'm using SetupBuilder Developer v7.0.2762.0.

I have created a test project and I see this (see attached screenshots). It
looks okay to me. The parameters in the Shortcut Properties "/excl
/runtime" (shortcutproperties.jpg) are the parameters that I see in the
created Shortcut (createdshortcut.jpg).

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
01-23-2010, 03:12 AM
Okay, I see where I went wrong. I had completely overlooked the
Parameters text box and had put everthing (program and parameters) in
the Target text box, and if the parameters are in the target, the
forward slashes get changed to backslashes.

I moved the parameters to the Parameters text box, and now everything
works properly.

Thanks Friedrich!

-Kevin