Solved

InstallShield Question

Posted on 2000-05-05
3
476 Views
Last Modified: 2013-11-20
I'm using InstallShield 5 Professional Edition and I have a little problem.
When installing my app. I have to delete an old folder from Start/Programs
which is created by a diffrent version of the application.
To be more specific in Start/Programs I have a group like: MyApplication which contains 2 shortcut items: Shortcut1 and Shortcut2.
From my script I have to delete the group MyApplication with those 2 shortcut items and I use DeleteProgramFolder function. But unfortunately this call deletes the shortcuts items but not the MyApplication group.
What should I do ???
10x in advance
0
Comment
Question by:nick666
  • 2
3 Comments
 
LVL 3

Expert Comment

by:V_Bapat
ID: 2781044
Are you installing on Win NT & the folder MyApplication is in Common folders in Program menu?
0
 
LVL 3

Expert Comment

by:V_Bapat
ID: 2781071
Can you show some code where you are trying to delete the folders?
0
 

Accepted Solution

by:
blegris earned 50 total points
ID: 2781499
You need to make sure that the folder you try to delete is not the current directory. I hope this will help you.


function RemoveOld()
LIST          listItemsID, ListFoldersID;
begin

listItemsID = ListCreate (STRINGLIST);
listFoldersID = ListCreate (STRINGLIST);

// THIS IS THE LINE THAT SHOULD HELP YOU
ChangeDirectory( "C:\\" );

// Delete here your icons
DeleteFolderIcon (svFolderName, @HELP_ICON_NAME );
if ( bWinNT ) then
// For NT delete the directory only
// if no more icons are found
DeleteDir( FOLDER_PROGRAMS ^ svFolderName, ONLYDIR );
elseif ( GetFolderNameList ( FOLDER_PROGRAMS ^ svFolderName, listItemsID, listFoldersID ) < 0 ) then
// Get the list of icons failed no more
// icons
DeleteProgramFolder( svFolderName );
endif;
if ( ListCount(listItemsID) <= 0 && ListCount(listFoldersID) <= 0  ) then
// No more icon remove the icon folder
DeleteProgramFolder( svFolderName );
endif;
endif;
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Separate files macro - Errors on larger data set 18 65
Complete beginner needs help making a cron job 9 110
maven archtype selection in eclipse 1 53
Line meaning 9 82
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now