Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

check whether folder icon exists


1 reply to this topic

aseembansal

aseembansal
  • Members
  • 1 posts

Posted 04 July 2003 - 07:49

Hi,

I am looking for a function in InstallShield 5.1 Professional edition, which can tell me whether a folder icon already exists or not.

For example: -

Folder icon: -

Start --> Program Files --> XYZ ---> ABC


My installer should check whether ABC icon exists on the machine or not. If it exists on the machine, then create

Start --> Program Files --> XYZ ---> ABC1

else create

Start --> Program Files --> XYZ ---> ABC

Can you please tell me how can i achieve this?

Regards
Aseem Bansal


Perotin

Perotin
  • Full Members
  • 407 posts

Posted 04 July 2003 - 13:28

Try the Is function.
CODE
if( Is( FILE_EXISTS, FOLDER_STARTUP ^ "ProgramABC.LNK" )) then
...
if( Is( PATH_EXISTS, FOLDER_STARTUP ^ FOLDER_XYZ )) then
...


This should help you to find whether the link/folder exists.
If not, you can create it with the following command, if it exists, create a different one.
If ABC and ABC1 exist ...
You can code a repeat- or while-phrase that changes the number when the link already exists, until ...


Gruß / regards
Thomas