PDA

View Full Version : How do I check if file exists in the install folder



iancook
02-04-2009, 03:41 PM
Hi
I am sorry if this has been asked before...

I would like to ensure the user has selected the same folder that another program is located in.
Ideally this would be done as part of the user interface so the user can go back and select the correct folder.

For example, the install folder must contain "footytip.exe"
If not, then setup cannot continue.

I have attached a screen dump of my attempt to test this in the script but it is not working.

Can anyone please tell me where I am going wrong?

Thanks in advance

Ian :)

linder
02-05-2009, 02:06 AM
Ian,

Only one more If.. Statement and you are done ;)

See attached source code snippet and demo project.

Does this help?

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

iancook
02-05-2009, 02:56 PM
Thank you VERY much!!

It works well now!

Ian :)

iancook
02-05-2009, 03:10 PM
Hello again,
Thanks for the previous prompt reply!
I just had another look at your post.

After Display Message box "The client must be installed to the same folder..."
you have another line..
"Set Focus to Control ID $DESTINATION_EDIT1$

For the life of me I cannot find how to add the "Set Focus" line to the script.
I cannot see it in any of the listed "Script functions" or "Control Statement"

Can you point me in the right direction please!

Thanks
Ian