The other default

Started by dglienna, April 22, 2005, 12:57:45 PM

Previous topic - Next topic

admin

dglienna,
 
The only way the setup would attempt to be installed on the D: is that that is where the OS was originally installed on that machine.
 
You have msbind.dll in another folder already. Just put that folder name in the search area so that InnoScript will search for it there. Do not add anything to the Unsafe file list.
 
With the template file you need to follow the rule for replacement or addition. Additions would be lines that are not in the original file. They would be simply added to your script, such as:
 
[Setup]  
DisableDirPage=Yes  
 
This line would just be added to the script from the template file.

dglienna

When I used tracking data the program wanted to install the default directory to the D: drive, I was told. The first machine had a second disk drive, so it worked.  The second had one disk, and the installation crashed.  I have recompiled it and it appears to be installing correctly.
 
You said that I could put MSBIND somewhere so that  I didn't have to manually move it. Could you explain that again?  Would I add it to the Unsafe file list and also add it to the folder, or does the file get updated automatically when I add a fie to the folder?
 
With the tpl, would I just add my three changes to the file?

admin

dglienna,
 
The idea of the template file is to automatically make changes to your script each time you create it so that you do not need to remember which changes you needed to make and to have the same changes made each time.
 
You can have one template for each program (this is probably best).

admin

dglienna,
 
Please explain what you mean tell InnoScript that there is a default directory? {pf} is for the Program Files folder.
 
Installed your program to the CD? I don't understand this one.}

dglienna

So is it better to not cutomize the script, but to use the tpl file to make all changes? Or do you use the same tpl for all programs, and modify it slightly?

dglienna

If I tell Inno Script that there is a default directory, can I use {pf}?  When I used the folder name, it tried to install it on the D: drive (which was the CD on the second machine. (it worked on the first one!)

admin

dglienna,
 
It makes no sense to have a template name entered with no template data to process. This is why you have that empty file.
 
There is a test template file with the installation to show how templates work. There are also instruction for template files in the help manual to help you with replacing and adding lines to your script.
 
You have to create a template script (.tpl) with the new instructions in it.  
 
If you are running in Safe Mode and you want InnoScript to find the files you took from the system folder you need to add the folder path to the search area path. Check the manual for this also.
 
The least amount of manual changes you do the better off it will be. Use the strength of InnoScript to handle your files for you.
 
Other than that your script looks fine.

dglienna

Well, I'm compiling it. I've changed the script to this...  So far, so good.

dglienna

OK.  I redid the project file, adding a default directory and default folder name, which i may have done the first time, but not the last time.
I also typed in a template name.
For some reason, now I have a Tracking Data v 1.0 with a size of 0 bytes in the Inno folder.  Not sure what to make of it.  I'll add the directives I pasted in earlier, too.

dglienna

It has to not take msbind.dll out of the system folder, so I take it from a safe folder. We wanted to change it to Tracking Data v1.0 for the Group name, as well as the shortcut name.
No template to make changes.
I'll make a new script, and not change anything (but it won't build the setup.) I'll upload the files.

admin

dglienna,
 
I am not sure of what you mean with msbind.dll Do you add this line. if so why? And why would you change the name Tracking Data?
 
You are obviously not using the template to make changes, correct?
 
Now if you leave the script the way InnoScript creates it is everything correct. zip and upload your pjt and vbp files. I need to take a look at these.

dglienna

and of course, changing TrackingData to Tracking Data v 1.0 in a few places.

dglienna

Just these:
====================================
MSBIND.DLL
 
 
 
Source: C:Documents and SettingsDavid GliennaMy Documents\mail{Jandrade15@comcast.net,Jandrade15@comcast.net}Filesneededmsbind.dll; DestDir: {sys}; Flags:  regserver restartreplace  
 
----------------------------------------------------------------   
 
 
FilesNeeded
 
Delete path from filesneeded to just {path}
 
----------------------------------------------------------------   
 
To not have to choose a default install location, add this to the Setup section
[Setup]
 
DisableDirPage=Yes
 
====================================

admin

dglienna,
 
What are the changes that you are making. Post them.

dglienna

I deleted the project file and had to recreate it, which is where something may have gotten messed up.
I recreated the script file, and then deleted the line that had the web access, and that messed things up. I ran the script again, and made the changes, but stil had the problem.  I only have 3 changes that I have to make. I paste in 3 lines.