Function GetAppFolder(Param: String): String;

Started by davethomson, May 14, 2008, 01:20:31 PM

Previous topic - Next topic

davethomson

Running to update now. Thank you.
 
Hawaii! I think you told me that early last year. Hard to remember so long ago  
 
You must be a night-owl. I am an early-bird.
 
Many thanks again for all your great help.

Randem

Yes, If Updates are not running things must be confused with the old version. Downloading the latest Update should fix it.
 
BTW: I am in Hawaii on the island of Maui. It is 12:32am...

davethomson

Check For Updates When Starting is checked. I assumed that I didn't have to do anything else. So, what do I do to get the updates? Go to your site, download and isntalled the lastest update?
 
Ok, thanks you. I understand what is going on. I will update as soon as you let me know which method I should use.
 
It must be early in the AM where you are, which by the way, is where?

Randem

1 - You have not updated to version 6 yet (Please do).
 
2 - I started with a new project and added everything in.
 
3 - a change in the update changes {userappdata} to {localappdata}
 
4 - Beta is what you have chosen for your app. I chose Release
 
5 - MinVersion I chose different than you.
 
Please visit the InnoScript History page in the forum for other changes.

davethomson

Interesting. Most things are the same as what I get out of Innosetup. For example, I see you output says Build 6. Mine says, Build 4. Mine has Beta after the program name, AppId=Dogfight_Manager Beta and your has AppId=Dogfight_Manager. I must have change something since I sent you the files. You have MinVersion=4.0,4.0sp6 and I have MinVersion=4.1,5.01
 
And then there is this difference:
 
Yours:
[UninstallDelete]  
Type: files; Name: {app}\Dogfight Manager.url  
Type: dirifempty; Name: {app}  
Type: dirifempty; Name: {localappdata}
 
Mine:
 
[UninstallDelete]
Type: dirifempty; Name: {app}
Type: dirifempty; Name: {userappdata}
 
If you have time I would appreciate an explanatdion of these differences. Really not a big deal as my script works and the program is easily installed  
 
Once again, many, many thanks for taking the time and effort to address my problems. I appreciate your patience with my lack of knowledge.

Randem

Ok, I used your files and this is what I come up with.
 
; InnoScript Version 9.0  Build 6
; Randem Systems, Inc.
; Copyright 2003-2008
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows XP 5.1 build 2600 (Service Pack 3)
 
; Date: May 15, 2008
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 9\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   C:\Temp\wiseoldman\dogfightmanager-8948\Dogfight Manager.vbp
; Inno Setup Script Output File (.iss):   C:\Temp\wiseoldman\dogfightmanager-8948\Dogfight Manager Release.iss
;         Script Template Files (.tpl):   C:\Documents and Settings\Ralph James\Local Settings\Application Data\Randem Systems\innoscript\Templates\Release.tpl
 
; ------------------------
;        References
; ------------------------
 
; Visual Basic For Applications - (MSVBVM60.DLL)
; OLE Automation - (STDOLE2.TLB)
 
 
; --------------------------
;        Components
; --------------------------
 
 
 
[Setup]
AppId=Dogfight_Manager  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=Dogfight_Manager 8.6.0  
AppVerName=Dogfight_Manager  
AppPublisher=Dave Thomson
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=8.6.0
VersionInfoVersion=8.6.0
AllowNoIcons=no
DefaultGroupName=Dogfight Manager  
DefaultDirName={pf}\Dogfight Manager
AppCopyright=Copyright 2008 By Dave Thomson
PrivilegesRequired=Admin
MinVersion=4.0,4.0sp6
Compression=lzma
OutputBaseFilename=Dogfight Manager860Release
 
[Tasks]
 
[Files]
Source: c:\program files\randem systems\innoscript\innoscript 9\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags:  uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 9\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags:  uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 9\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags:  uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 9\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags:  uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 9\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags:  uninsneveruninstall restartreplace regtypelib; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 9\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags:  uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 9\vb 6 redist files\vb5db.dll; DestDir: {sys}; Flags:  uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:\temp\wiseoldman\dogfightmanager-8948\boscobeldogfight.txt; DestDir: {localappdata}\dave thomson\dogfight_manager\; Flags:  ignoreversion;  
Source: c:\temp\wiseoldman\dogfightmanager-8948\boscobeldogfightarchive.txt; DestDir: {localappdata}\dave thomson\dogfight_manager\; Flags:  ignoreversion;  
Source: c:\temp\wiseoldman\dogfightmanager-8948\boscobeldogfightpayoutschedule1.txt; DestDir: {localappdata}\dave thomson\dogfight_manager\; Flags:  ignoreversion;  
Source: c:\temp\wiseoldman\dogfightmanager-8948\using dogfight manager.txt; DestDir: {localappdata}\dave thomson\dogfight_manager\; Flags:  ignoreversion;  
Source: c:\temp\wiseoldman\dogfightmanager-8948\dogfight manager.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;  
 
[INI]
Filename: {app}\Dogfight Manager.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\Dogfight_Manager ; Filename : {app}\Dogfight Manager.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, Dogfight_Manager }; Filename: {app}\Dogfight Manager.url; IconFilename: {app}\Dogfight_Manager.ico
Name: {group}{cm:UninstallProgram, Dogfight_Manager }; Filename: {uninstallexe}
 
[Run]
Filename: {app}\Dogfight Manager.exe; Description: {cm:LaunchProgram, Dogfight_Manager }; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
[Dirs]
Name: {localappdata}\Dave Thomson; Flags: uninsalwaysuninstall;
Name: {localappdata}\Dave Thomson\Dogfight Manager; Flags: uninsalwaysuninstall;
 
[UninstallDelete]
Type: files; Name: {app}\Dogfight Manager.url
Type: dirifempty; Name: {app}
Type: dirifempty; Name: {localappdata}

davethomson

My error  
 
I got the program with all the .txt file to run correctly. It was, and is, my dogfight manager program that was the main problem, i.e. the one I absolutley had to get done. This program only uses one .txt file. I am sorry I messed you up with the switch in programs.
 
I followed you instructs to the letter and I now have the complete installation .exe. I tested it on my PC by renaming the c:\dogfight manager\ to c:\dogfight manager1, ran the .exe and everything worked, i.e. the folder was created, the .exe and .txt file were there. So I copied the Boscobel .txt file into the folder, ran the program and everything seemed ok.
 
Here is the zip file of the files you requested.
 
file.
 
Included are the other files that the program needs for the Boscobel course. Just thought you might wish to see how it works even if you don't understand the golf dogfight concept.
 
I try not to type in either the .pjt or .iss files. However, I must admit that a few days ago when innoscirpt blew up I was absolutely desperate I did go into the .iss file and change somethings. But, when I finally got innoscript working again I didn't touch those.
 
I was in the panic mode as people were counting on my program to work as it saves them about 1.5-2 hours/day in handwritten intensive work. With my program they can do the same task in 10 minutes.
 
I really, really appreciate your cutting me some slack during this crisis time for me. I was hard to get back into working with innoscript as I hadn't done anything with it other than just run previous files. To start over again I had to re-learn how to use it. I forgot that the program.exe doesn't go in the ADD FILES, stupid error on my part. But, when something has been working for months and months my mind deletes how I did it in the first place. Only so many RAM in this old head I guess.
 
I will go over the innoscript instructions once more. But, as I recall from the previous version I had, the instruction were a bit over my head, explained too much whereas all I need are the very basics to get the script for innosetup. I have that now but I will read the instructions once more (I may have to skip over some parts that involve severe tweeking of innoscript.
 
P.S I don't understand the Administrative part, i.e. where in innosetup there is PrivilegesRequired=Admin.  
 
(Message edited by wiseoldman on May 15, 2008)
 
(Message edited by wiseoldman on May 15, 2008)

Randem

By the way you are missing all of your text files in this script probably as well as a few other things...
 
You are getting the exe deployed to the system file because you are adding it in the Add Files tab. It isn't meant to be used that way. You should take some time to view the documentation...

Randem

I see two things:
 
Source: c:dogfight managerdogfight manager.exe; DestDir: {sys}; Flags:  restartreplace ignoreversion;  
 
should be
 
Source: c:dogfight managerdogfight manager.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;  
 
 
and
 
C:/Dogfight Manager/Dogfight Manager 8-6 XP Beta.iss
 
should be
 
C:Dogfight ManagerDogfight Manager 8-6 XP Beta.iss
 
You must be typing thing in and that will work against you most every time. Use the browse button next to each item that will allow you to search the disk for the file you want.
 
Please zip and post your exe and vbp file... I will take a look.

davethomson

The .pjt file:
 
 
 
the .iss file :
 
.iss file for above .pjt file
Dogfight Manager 8-6 XP Beta.iss (4.2 k)

To a novice like me I can't see the error. To a professional like you it will be obvious.


davethomson

Yes now I have all the templates DE-SELECTED and innoscript produced an iss file with NO PINK [CODE] with my file or your test.
 
However, InnoSetup gives me the message:
 
Warning: Unsafe usage on file dogfight manager.exe: The ignoreversion flag should not be used on file installed to Windows System Directory.
 
I am not trying to install to the Window System Directory. What could be causing this?
I have to get to the course now... I will be back in an hour or so and continue trying to understand what to do.

Randem

De-select as in no check mark in the box on the line where Vista.tpl is...

Randem

Did you edit the Beta.tpl file and delete the contents?
 
Did you de-select the Vista.tpl file?

davethomson

I did use the template and removed the beta.tmp (or whatever you told me). But it is in your test.pjt file in innoscript. I am totally confused now. And I am sorry you are up so late trying to help me.
 
I am going to my golf course that uses this program and try to work-around the problem until I can get the .pjt and .iss files working. i will be back shortly and keep trying to understand and follow your directions  
 
 
Strange things still happening ...
 
I made a copy of your test.pjt and named it CourseRatingSystem. Both files are in a folder named temp.
 
I ran text.pjt and there was no pink [CODE].
I ran CourseRatingSystem.pjt (an exact copy of test.pjt) and I ge the pink [CODE].
 
How is this possible?
Here they are:
 
 
 
copied and renamed to CourseRatingSystem
CourseRatingSystem.pjt (3.3 k)

What I am doing wrong now???
 
(Message edited by wiseoldman on May 15, 2008)