Hi,
I'm not sure if this is innoscript or inno setup problem but..
I added files (including .mdb and .exe) to the Add files tab.
These appear on the script but after using inno setup and installing only main exe file is in folder.
I notice that path to the files added is not the same as path in script - Source: .....
Does innoscript not 'lift' files from specified folder? I have multiple copies of these file names but of different versions in different folders.
Thanks
What is the line in the script that was created? That is where Inno Setup will copy the file. Why did you add the exe? Please post your script...
One exe is for activation codes, other is main exe.
Also not installing mdb files.
Under FILES, if I read it correctly, numbers 6-10 are being read from the wrong folder. This is not the folder that I added the files from.
Although these may be read from the wrong folder should they not still be installed?
Two problems 1. how do I get it to read correct folder rather than searching drive C? Do I have to block all other folders?
2. Why not installing all mdb and exe files?
Thanks.
The Add Folders entries are not searched for. Please zip and post your pjt file for this project.
Also you have the mdb files being installed in the userappdata folder not the app folder. You very well may want this (and you should) but you may be looking in the {app} folder for the files...
{userappdata}\QuickPrice
this translates to
Documents and SettingsYouUserNameApplication DataQuickPrice
This will change in the next version to
Documents and SettingsYouUserNameLocal SettingsApplication DataQuickPrice
and
{localappdata}\QuickPrice",
file as requested
I have added on folder to Add folder - this was attempt to find problem.
you have the mdb files being installed in the userappdata folder not the app folder
I see this in the script, but I did'nt put it there!!
Yes, As in the instructions... If you have the item checked in the add files folder, then it will go to the {userappdata} folder...
I am looking into the Add Files situation...
Ah...
I have printed out and looked through the instructions, but with little knowledge of what all installation involves I don't always understand what I'm suppose to do.
Replace you InnoScript.exe with this one. this should fix the Add Files issue.
I have downloaded beta, but did not get chance to try it until today. Payment was requested and I'm not sure if my attempt at using paypal worked. I'm already registered (pp) but have forgotten password!
Help.
James Johnston
I don't understand what you mean. We don't currently have a Beta version available... And I don't understand the rest of the question about Paypal... We have no record of any payment.
Your post on May 10th has a fix for Add File issue and is labelled as 9.0.6 beta.
The second part was more a statement than a question, but at least I know payment has not gone through. I would hate to pay for it twice!
Ok, when you stated Downloaded I immediately thought from the website. If the payment had gone thru you would have had your reg codes by now.
created new paypal a/c - seems to have gone through this time.
Make sure you download the update from the site or the forum to get away from the beta version.
Still having origional problem. Added files (mdb and exe) are not added to app path folder. I have tried including a 'file' folder but to no avail. I don't know how to edit the script manually, but surely this should not be necessary?
I simply want to add mdb files which will be installed in either app path or a folder in app path on destination machine.
Also I want user to have link to help file from Start | All Programs | My app. and I want to remove '...on the web'.
You don't need to edit the script manually. Just creating a simple script where you do nothing but set the vbp file and the iss file then selecting Create Script will give you all the direction you need in lue of reading the documentation. Try it...
You add the mdb by using add files. If the file line is unchecked it will go to the {app} folder but this is a bad idea if you are planning on using it in Vista or a limited users account.
You don't add the exe it will automatically be added.
To not have the link for the web uncheck the Include url links item on the main screen.
All this is in the documentation...
The exe files I am refering to are additional to the main program exe (added in 'add files'). Yes I have added the mdb files but they also are not being placed where I want them.
For Vista I understand that they should be in a sub folder of main application folder. How do I set this? Sorry if my previous post was not clear.
Also since last post I have tried various options to learn i/script. Now I am getting a list of 8 missing files. No changes have been made to main parts, only tried 'add files/folders'. Any ideas?
Should I wipe script and start again?
(Message edited by jamj on May 16, 2008)
What are 'internal installs' - what is meant by sub-installations?
Other separate installations such a Crystal Reports, SQL Server etc...
Any other package that needs to be installed. The package can be included in your installation making it much larger or left out to run externally by your installation. Leaving your installation the same size but you have to distribute the other installation along with your installation.
The only reason to use Add Files is to include files that will not be picked up by InnoScript such as .txt, .mdb or other such files.
If you have files missing there are several reasons that can be. Since I can't see you script I will give you some examples:
1 - The files are in the Windows System folder.
2 - The files are in a folder that is not marked to be searched.
3 - The files don't exist on your computer.
The first one is solved by copying the missing files from the Windows Systems folder to another location on the hard disk then directing InnoScript to search for the files there using the Search Tab (There is a whole section on this in the manual).
The second... Add the folder to the Search Files tab...
The third... Download the files and add the folder to the search tab.
Thanks.
I understand the 'add files' and that files should be in separate folder from win system. But my problem is that when I opened a saved script and rebuilt it I got these missing files. Why missing on one build and not missing on previous?
More important is that I cannot seem to get my head around the appdata folder. How do I set it up in the script and how do I flag which files to go into it?
I really must see your script (iss) and project (pjt) files to answer some of your questions.
Please post them...
I understand the 'add files' and that files should be in separate folder from win system.
I am not sure you understand... This statement says something else other that what I referred too.
Ok, you understand the Add Files
Now you are sending your data files (Add Files) to the AppData folder meerly because each file has a checkmark next to it. If you remove the check mark then those same files will go to the {app} folder.
Have you read the link about making your apps Vista Compliant. This will help with the {app} vs {localappdata} issue.
Research indicates that 'AppData' is a path set by windows. Correct?
How can I create my own sub folder (ie within application folder), and place data files in it?
Also as previously stated I am including extra exe files with main program. (These are activation programs.) I want these to be with main exe and also have link in Start | All Programs.
Have you read the link about making your apps Vista Compliant
Not sure
I have read so much and understood so little!
Which link are you refering to?}
How can I create my own sub folder (ie within application folder), and place data files in it?
Manually edit the script or create a template that will do it for you. InnoScript is already doing that for you with the {localappdata}.
I want these to be with main exe and also have link in Start | All Programs.
Manually create a line in the [Icons] section for the exe.
This page contains the link https://randemsystems.support/index.php?topic=236 (https://randemsystems.support/index.php?topic=236)
Yes I already have that printed out.
These files are missing. Of course they are missing you are running in safe mode and they are in the Windows System folder (since they are system files and VB components). You are supposed to copy these files to another folder the add that folder to the search tab for processing.
Source: msstdfmt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: threed32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: tabctl32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: dblist32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: dbgrid32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: mscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;}
Well, that link describes why you should not put the files in the Program Files folder and they should go int the AppData or the LocalAppData folder. You really do not want to place files that you need to write to in the Program Files folder if you want your app to work on Vista and in Limited User Accounts.
Manually edit the script or create a template that will do it for you. InnoScript is already doing that for you with the {localappdata.
}
OK. Not too sure how to do it. This is a learning curve.
Can I give a name to 'localappdata' or is it preset}?
LocalAppData will take the location from Windows. This will be different for each user so to hard code it would be a VERRRRRYYYY Bad idea. Just as hardcoding App would be bad.
Hardcoding entries is asking for program failure...
AppData and LocalAppData will change for each user IE.
C:\Documents And Settings\YourUserName\Local Settings\Application Data\
would be entirely different if I logged on, IE.
C:\Documents And Settings\MyUserName\Local Settings\Application Data\
This is why you don't want to hardcode...
Now when you add a folder Add Folder that folder will be create in the location where you installed your app wherever it may be. The only rule is that the folder has to be located in the folder where your VBP project is also.
If all read/write data should be in localappdata folder then I wont need a folder within the application folder.
Until now I had just placed data files within application folder - simple! and it worked
Who wants vista
Luck should not be part of the deployment process...
It worked because everyone is an Administrator... In the real world in the corporate world this is not the case and your app would crash. Not exactly the way I would like my apps to work...
OK I am progressing.
With regard to missing files - they were in a separate folder but i/s was not finding them. Added to 'search folders' and problem solved.
Thanks for help.
So far so good except for -
I want these to be with main exe and also have link in Start | All Programs.
Manually create a line in the [Icons] section for the exe.
I have tried adding additional line in Icons so that second exe can be run from Windows Start. However I cannot get it to work. I copied first line in Icons which refers to main exe and then I altered name of exe to point to required program. What have I done wrong? I dont know how script is suppose to read.}
AppData and LocalAppData will change for each user IE.
C:\Documents And Settings\YourUserName\Local Settings\Application Data\
I have installed but cannot get VB6 to read path as above.
In your help you indicate 'Environ(APPDATA)' but this returns C:\Documents And Settings\YourUserName\Application Data\
I tried entering LocalAppData but it returned empty string.
How do I get path as set by localappdata?}
See, you did not read the link I suggested for there was a project there that would help you get these locations.
Titled: Make Your Application Limited User Compliant
When you state that you cannot get something to work, it would help if you actually posted the line(s) that you used that you cannot get to work so that I don't have to attempt to be a mind reader...
I did read the link, but am confused by limited user - I don't limit the user.
Problem is that read/write files are placed in folder C:Documents And SettingsMyUserNameLocal SettingsApplication Data. This is just as you described earlier. This installation is now working.
However when I run my VB program I cannot get path to these files. In innoscript 9.0 instructions (page 1) You can get your APPDATA location by getting it from the environment. In VB6 use Environ(APPDATA).
My code line is below -
globDataPath = Environ(APPDATA)
This does not return correct path to installed files.
IE.
files installed in
C:Documents And SettingsMyUserNameLocal SettingsApplication Data.
VB6 reading
C:Documents And SettingsMyUserNameApplication Data.
Script is installing to LocalAppData but VB6 reading AppData. Can I get VB6 to read LocalAppData, or can i/script change script to AppData?
Correct, We have to change that for in the latest release we installed into the LocalAppData location and since there is no environment variable for that you need to use the example in the code to find the correct path.
BTW: You don't limit the user the OS does... If you don't follow the techniques described you WILL have problems on Vista and any user that have an account of Limited User Setup by the network admin or computer admin.
can you not change back to AppData and make life simple?
Looking at the example for limiting user makes me feel like giving up.
It's not that hard, it just looks hard because you don't understand it yet. However if you just try the project it will become perfectly clear. It is a full working project... All you would need to do is incorporate it into your code...
It basically does everything for you...
Progress, I found a few things especially with the menu list. It was an item in the language file that needed to be removed.
Install this update for a better concept of what is going on. Pay close detail to the Add Files and Add Folders Tabs.
ref 9.0.7 beta.
Not all Add Files} marked 'app' appear in app.path. Out of three I have one going to localappdata.
I cannot verify that. Everything I see is going where it is supposed to. Can you post your project file where this occurs.
problem is with 'q.. b.. back up.exe' Is showing app in i/script but in actual script is showing
localappdata.
Zip and Post your project .vbp, .exe and .iss files. I don't see anything in the .pjt file.
Enclosing iss file. You will notice in pjt file that all 'Add files' are unchecked and set to 'app'.
Line 6 in iss file gives output dir as localappdata.
Although this is an exe file it is not main project and has been added through Add Files, therefore I don't think exe or vbp info will be of help.
If you want to help solve this issue, you have to give what is asked for. It may mean nothing to you but we are the experts
Please post the files...
no problem
Ok, now I can duplicate it so I have something to work with.
Ok, here is something to work with. It's a little different (Add Files / Add Folders) but you should catch on quickly.
Thanks for your assistance...
coming up 'file missing'
Am I suppose to put this in origional folder and overwrite existing exe? It did not run installation, just extracted exe file.
Yes, you are supposed to replace your InnoScript.exe with this one... The complete installation for the beta is online also.