Solved

InstallShield Question

Posted on 2000-05-05
3
472 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
Comment Utility
Are you installing on Win NT & the folder MyApplication is in Common folders in Program menu?
0
 
LVL 3

Expert Comment

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

Accepted Solution

by:
blegris earned 50 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Running shell command from Access 3 63
while loop over for loop 7 79
bigDiff challenge 17 75
fizzArray2 challenge 1 56
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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…
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

744 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

13 Experts available now in Live!

Get 1:1 Help Now