Re: Shortcuts in Windows 8
Posted: Tue Oct 02, 2012 8:34 am
Looking at the MSIcode, the shortcuts to EXE files are created in a different part of the code to those for the other file types. I don't believe I hand coded this so wonder if this is the reason for it not working. This is an extract from my installer:
Code: Select all
[DEFINE WEB MEDIA SAM]
Get Component SAM Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Install Files J:\Projects\Releases\SAM 6.50k\Bestech\*.* to $TARGETDIR$, include subfolders
Create Shortcut $SHORTCUTFOLDER$\FlexNet\FLEXId Dongle Driver Installer to $TARGETDIR$\License\Tools\FLEXId_Dongle_Driver_Installer.exe, do not include in Start Screen
Create Shortcut $SHORTCUTFOLDER$\FlexNet\LMTOOLS to $TARGETDIR$\License\Tools\lmtools.exe, do not include in Start Screen
Create Shortcut $SHORTCUTFOLDER$\SAM Version 6.50 to $TARGETDIR$\Sam6\SAM6.exe
Create Shortcut $DESKTOPDIR$\SAM Version 6.50 to $TARGETDIR$\Sam6\SAM6.exe
end
Comment: TO-DO: Insert any additional install commands here
[compiler if Variable BUILDMODE Equals PATCH]
Apply Patch (get result into variable SUCCESS)
[compiler else]
if Variable ADVERTISE Equals TRUE
Apply Advertised (get result into variable SUCCESS)
else
Create File Type Sam.Data.File with extensions .sam and associate with program $TARGETDIR$\Sam6\Sam6.exe
Create File Type Sam.Structure.File with extensions .sst and associate with program $TARGETDIR$\Sam6\Sam6.exe
Create Shortcut $SHORTCUTFOLDER$\Manuals\Installation Guide to $TARGETDIR$\Sam 6.50c Installation Guide.pdf, do not include in Start Screen
Create Shortcut $SHORTCUTFOLDER$\Release Notes to $TARGETDIR$\Sam 6.50c Release Notes.pdf, do not include in Start Screen
Create Shortcut $SHORTCUTFOLDER$\ReadMe to $TARGETDIR$\Sam 6.50c Readme.txt, do not include in Start Screen
Create Shortcut $SHORTCUTFOLDER$\FlexNet\FlexNet License Administration Guide to $TARGETDIR$\License\Manuals\LicenseAdministration.pdf, do not include in Start Screen
Create Shortcut $SHORTCUTFOLDER$\Manuals\BS Examples Manual to $TARGETDIR$\SAM6\Help\examplesuk.pdf, do not include in Start Screen
Create Shortcut $SHORTCUTFOLDER$\Manuals\EN Examples Manual to $TARGETDIR$\SAM6\Help\exampleseu.pdf, do not include in Start Screen
Create Shortcut $SHORTCUTFOLDER$\Manuals\AS 5100 Examples Manual to $TARGETDIR$\SAM6\Help\examplesau.pdf, do not include in Start Screen
Create Shortcut $SHORTCUTFOLDER$\Manuals\AASHTO Examples Manual to $TARGETDIR$\SAM6\Help\examplesus.pdf, do not include in Start Screen
Create Folder $SHORTCUTFILES$\Sam
Apply Install (get result into variable SUCCESS)
end
[compiler end]
Set Variable PROGRESS to 100
end
<<Code Folding Region>>
<<Code Folding Region>>