cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sachit1349
Level 4

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
Labels (1)
0 Kudos
(2) Replies
sachit1349
Level 4

Is there anyway to stop setup fom creating the duplicate?
Any workaround?
0 Kudos
DLee65
Level 13

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?
0 Kudos