SzCommandLine = INSTALLDIR ^ "Notepad2.exe" szIconPath = sMySUPPORTDIR +"\\" + "icon32.ico" NUMBER nIcon, nFlag, nResult, nvBufferSize STRING szProgram, szParam, szFolderDir,szCmd STRING szIconPath, szShortCutKey,szValue,szValue1 STRING szShortcutFolder, szName, szCommandLine, szWorkingDir Install the setup.exe and click NEXT and go to Shortcut checkbox dialogĬheck shortcut created under desktop and under Appdata folder (EX: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\CompanyName) Similarly in Customer information Dialog the NEXT Button should be change to ShortcutDialog Now Sequence the new dialog (ShortcutDialog) BACK and NEXT button as needed under behavior.ĮX: BACK -> Customer information, NEXT button to Setup Type Rename the new dialog (Example: ShortcutDialog)Īnd set above created 2 property to this 2 checkbox filed Make sure the value column is empty, so that the checkbox is unchecked by default Go to property manager and add 2 property DESKTOP_SHORTCUT and START_MENU_SHORTCUT Go to Dialogs and Add a new Interior Dialog dialog Set the Condition for both Customaction (for EX: Create shortcut add condition NOT installed, and for Delete Shortcut add REMOVE~="ALL")Īnd select Install Exec sequence as required. Go to CustomAction view and add 2 Installscript Custom Actions and rename it.(CreateShortcut,DeleteShortcut)įor Create Shortcut CA select the function CreateShortcut and for Delete Shortcut CA select the function name as DeleteShortcut from drop down Make sure CreateShortCut and DeleteShortCut functions are added Go to installscript view and Right and add lĬopy paste the code at the bottom of this article into l (Replace shortcut name as per your exe added in components Example: Notepad.exe) This information applies to the following InstallShield project types:Īdd a Feature and add component and files inside componentĪdd exe files to component for which we want to create a shortcut. This article explains how to create a shortcut based on user request. This article will discuss how to create a shortcut based on user input using a property value and Create a shortcut using installscript and delete the shortcut on uninstall
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |