This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Duplicate shortcut in Start Menu on running the installation in Repair Mode
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2008
11:05 PM
Duplicate shortcut in Start Menu on running the installation in Repair Mode
Hi,
I am working on installscript project.
I am using SdSelectFolder Dialog to let user choose the folder in which shortcut is to be created. The problem I am facing is that when the installation is again run in Repair Mode it creates a duplicate shortcut in Start\Programs.
This is the code used for calling SdSelectFolder:
Dlg_SdAskFolder:
if ((nResult = BACK) && (nSetupType != CUSTOM)) goto Dlg_SdAskDestPath2;
szTitle = "";
szMsg = "";
if (nSetupType = CUSTOM) then
szMenu = IFX_COMPANY_NAME ^ IFX_PRODUCT_NAME;
//{{IS_SCRIPT_TAG(Dlg_SdAskDestPath2)
nResult = SdSelectFolder( szTitle, "", szMenu );
//}}IS_SCRIPT_TAG(Dlg_SdAskDestPath2)
SHELL_OBJECT_FOLDER=szMenu;
endif;
if (nResult = BACK) goto Dlg_SdAskDestPath2;
Thanks
Sachit
I am working on installscript project.
I am using SdSelectFolder Dialog to let user choose the folder in which shortcut is to be created. The problem I am facing is that when the installation is again run in Repair Mode it creates a duplicate shortcut in Start\Programs.
This is the code used for calling SdSelectFolder:
Dlg_SdAskFolder:
if ((nResult = BACK) && (nSetupType != CUSTOM)) goto Dlg_SdAskDestPath2;
szTitle = "";
szMsg = "";
if (nSetupType = CUSTOM) then
szMenu = IFX_COMPANY_NAME ^ IFX_PRODUCT_NAME;
//{{IS_SCRIPT_TAG(Dlg_SdAskDestPath2)
nResult = SdSelectFolder( szTitle, "", szMenu );
//}}IS_SCRIPT_TAG(Dlg_SdAskDestPath2)
SHELL_OBJECT_FOLDER=szMenu;
endif;
if (nResult = BACK) goto Dlg_SdAskDestPath2;
Thanks
Sachit
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 06, 2008
12:54 AM
Is there anyway to stop setup fom creating the duplicate?
Any workaround?
Any workaround?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 06, 2008
01:50 PM
How are you creating the actual .lnk file? Is it associated with a feature that gets reinstalled?
I know in the past I have used the AddFolderIcon to create shortcuts in code and so we would add conditional statements to not create these if it already exists.
I have not had experience using the shortcut object for a given component in InstallScript installations.
EDIT: SHELL_OBJECT_FOLDER ... err, I read your post one more time and I need to ask, is it creating a new folder that contains the shortcuts or are you getting a duplicate shortcut within that folder?
I know in the past I have used the AddFolderIcon to create shortcuts in code and so we would add conditional statements to not create these if it already exists.
I have not had experience using the shortcut object for a given component in InstallScript installations.
EDIT: SHELL_OBJECT_FOLDER ... err, I read your post one more time and I need to ask, is it creating a new folder that contains the shortcuts or are you getting a duplicate shortcut within that folder?
