'Beta' Added to DefaultDirName

Started by davethomson, June 13, 2008, 08:17:36 AM

Previous topic - Next topic

davethomson

thanks for the warning. I will certainly look into this if I have to develop a Vista Version.
 
I just don't understand how the app: works so, since I can get my simple program working fine without it I will stick with it until the need arises.
 
Thanks again.

Randem

Ok, now with this approach you are using your app will not run on Vista for those reasons.

davethomson

Yes, I know the user can change the installation folder. However, they are warned that the program will not run, i.e. cannot find the necessary files.
 
I didn't use App.Path because I had no idea what that does. Remember, I an a novice using both Visual Basic and  InnoScript.
 
If the program is installed in a beta folder and the user develops files that he would use later on using the release folder I didn't and don't have a clue as to how to get his beta folder files over the the release folder.
 
A work-around is not good. That I agree with. However, when you are flying blind you do what you have to in order to make a safe landing.  
 
Once again, I really appreciate you help.

Randem

Also you do know that the user has the ability to change where the app is installed causing you app not to work...

Randem

Why have you hard coded your program? That is a big NO-NO Why didn't you use App.Path to locate your folder and you would not have a problem no matter where your app was installed.
 
Ex. MyFiles = App.Path & \myFile.txt
 
Work-a-rounds are very bad. Bite the bullet and code the app properly, in the long run you will be happier.
 
You can modify templates simply by creating on then adding it in the templates tab. If you want to further modify just double click on the template to modify and it will open up in notepad.

davethomson

Interesting but understandable way the new version operates compared to the older versions. Unfortunately, I have written my program to look for necessary files in the regular folder rather than the beta folder.  
 
Again, being a novice and one that doesn't understand templates and never have used them, where exactly is this modification made?
 
The work-around I used, i.e. modifying the script in InnoSetUp, works and is no big deal as now I know how InnoScript sets up the script.

Randem

That is now how InnoScript works. You should actually install the BETA version of your app in a separate folder. In this way you can have the Beta and the regular version running on the same machine without exe conflicts.
 
If you want to change the folder name use the template to replace the line.

davethomson

I have just downloaded and installed the latest version 9.1 Build 0. I ran it to update a program script which is a Beta Version. Prior to this new version of InnoScript the Beta was not added to the DefaultDirName. Now it is and this is not the directory I want to use. So I have to change the script in InnoSetUp. Why is this now happening whereas before it didn't? See graphics below.