I'm About to Give Up on InnoScript - Part 1

Started by tomb, November 28, 2007, 06:29:15 AM

Previous topic - Next topic

Randem

Why would you not want to remove the file on an uninstall? If the files are in a separate folder let's say {app}Data and you uninstall the app and want all the information removed except that folder, do this:  
 
[UninstallDelete]
Type: files; Name: {app}
 
You can do that with the inside the template.

Tom Buggy

Okay, I now have all the data files destined for {app}.  All I need to do now is figure out how to not uninstall the data files from the app folder.  You say:
 
To not remove the data files then remove from the [UninstallDelete] section the data file folder or change the flags on how it gets deleted.
 
I assume what I have to do is list as Type Files; all the files I want to remove (the .exe, .chm, etc.) and not use the Type: filesandordirs; Name: {app} entry.

Tom Buggy

I got your last post and I understand what you are saying about checking and unchecking item in the Add Files.  I missed that in the documentation.

Tom Buggy

A related question.  I just used Add Files to include msstkprp.dll.  It showed up in the generated script with a DestDir of {userappdata} - ?  I removed it from the Add Files List and added it to the Template with a DestDir of {sys}.  It showed up in the script as I wanted it - in red.  Again, is that okay.
 
BTW, I think I missed your last post.

Randem

Yes the {userappdata} is a change in the beta version if you select (checkmark) then line items in the add files and add folders tabs.
 
Check the Documentation... Experimenting and guessing causes weird results.
 
No that is not ok, unless you want failure later...
 
All you need to do is uncheck the box and it will be sent to the {app} folder instead of the {userappdata} folder in the next generation of the script.

Tom Buggy

Yeah, I know about right-click/Properties to see where the Shortcut is pointing.  I would have thought that the install of the upload would create the appropriate path for the icon it creates.  Oh well, all is okay now.
 
I've relooked at the Project, Script and Template files you originally sent.  The only thing in the Template file is the Source for labels.def. When I modify your Project file to  reference the .vpf's location on my system and run, the labels.def entry shows up in the generated script in blue.
 
All the data files are in the Add Files list.  In your script they all have a DestDir of {app}.  In the script generated in the modiified project they have a DestDir of {userappdata}.  Is that because of changes in the latest Beta version I uploaded?  If not, why the difference?  If so, how do I change to {app}?  I tried an experiment of removing one of the files from the Add Files list and including it in the Template with the {app} destination.  That got it into the generated script - it shows up in red.  Is that okay?

Randem

That would be it, The desktop pointed to an old installation then InnoScript 7 folder. You could always check that by right clicking on the icon and selecting properties.

Tom Buggy

Why did you have to uninstall and re-install to get it to run???
 
Don't know.  I did one download after your first post and that seemed okay.  When you posted that you uploaded another version, I downloaded that.  But when I went to run from a Desktop Icon it flashed red in the Tray and nothing ran.  That's when I did the uninstall/reinstall.  Perhaps the icon pointed to the old InnoScript 7 subfolder - ?
 
Now I am off to dinner.

Randem

Yes, those files should be 0 bytes... You haven't added anything to them yet. You could add information to the release template or use the template I included for your project (which should be your choice) and add any information to that. This way you can use multiple projects and have different templates. If you use the Release template that is something that you may want to include in all your projects.
 
Why did you have to uninstall and re-install to get it to run???

Tom Buggy

Okay - I see where V8.0 is now going into a new folder (Inno Script 8).  I had to uninstall/reinstall to get InnoScript to run.
 
In the Templates subfolder, the Release and Trial tpl files are 0 bytes - ??
 
I'm out for dinner - will be back in an hour or so.

Randem

To not remove the data files then remove from the [UninstallDelete] section the data file folder or change the flags on how it gets deleted.

Randem

I have just uploaded a version that takes care of the ActiveX issues.
 
Parameters Screen - From the main menu Settings->Parameters.
 
To modify a template - Go to the templates tab. Either add a template or modify an existing one. If you double click on an existing template it will open up in notepad and you can modify it from there. Check the documentation on templates.

Tom Buggy

I found the Parameters Screen unde Settings.

Tom Buggy

Okay - I downloaded the current V8.0 Build 0.  One thing I notice is that there is now a [UninstallDelete] section.
 
Based on your post: 1) What/where is the parameters screen?, and 2) how does one create or modify a template?

Randem

First thing you need to use the same version that I am Download the updated Beta version 8.0 Build 0 and install that. Let's concentrate on having one version to use.
 
GHM on the web is there because the include URL links is checked and you have not provided any information about a website in the parameters screen.
 
The labels.def file you need to add that line in the template with the change that you want, then when you run InnoScript again it will be changed.
 
Let's start from there with the last project file/template that I sent you...