Topics Topics Help/Instructions Help Edit Profile Profile Member List Register  
Search Last 1 | 3 | 7 Days Search Search Tree View Tree View  
Randem Systems Support Board * InnoScript - General Questions, Report Bugs, Problems etc... * How to install to Vista or XP < Previous Next >

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

innervations
New member
Username: innervations

Post Number: 4
Registered: 09-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, September 25, 2008 - 01:40 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Excellent. Thanks very much.
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1018
Registered: 04-2004

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, September 24, 2008 - 04:15 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Try DestDir: {Code:GetAppFolder|AppVerName}

From Inno Setup Help Documentation:

The Pascal script can contain several functions which are called when Setup wants to know the value of a scripted {code:...} constant. The called function must have 1 String parameter named Param, and must return a String value.

The syntax of a {code:...} constant is: {code:FunctionName|Param}

FunctionName specifies the name of the Pascal script function.
Param specifies the string parameter to pass to the function. If you omit Param, an empty string will be passed.
If you wish to include a comma, vertical bar ("|"), or closing brace ("}") inside the constant, you must escape it via "%-encoding." Replace the character with a "%" character, followed by its two-digit hex code. A comma is "%2c", a vertical bar is "%7c", and a closing brace is "%7d". If you want to include an actual "%" character, use "%25".
Param may include constants. Note that you do not need to escape the closing brace of a constant as described above; that is only necessary when the closing brace is used elsewhere.
Top of pagePrevious messageNext messageBottom of page Link to this message

innervations
New member
Username: innervations

Post Number: 3
Registered: 09-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, September 24, 2008 - 01:10 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Thanks. Found the template and added it in but how do I call it if I want to create a folder and put the application configuration settings (text file) in the correct folder for XP or Vista? I tried the following but does not work.

Source: C:\Users\Rob Newton\Documents\Programming\Ballistic System 2005 Version\BMSConfig.txt; DestDir: GetAppFolder(AppVerName); Flags: restartreplace ignoreversion;
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1014
Registered: 04-2004

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, September 17, 2008 - 05:54 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Sorry, We changed the template from Vista to the Legacy. All you really need to do is just select Add on the Templates tab to get to the templates folder. If you add the template then double click on it it will open for editing if you want to edit it.
Top of pagePrevious messageNext messageBottom of page Link to this message

innervations
New member
Username: innervations

Post Number: 2
Registered: 09-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, September 17, 2008 - 05:25 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Thanks for the speedy response. Found the Vista template in the folder C:\Program Files\randem systems\InnoScript\InnoScript 9\Templates

But it only contains the following text:

[Comments]

Template Processing first character indicators usage.

No Indicator Attempt replacement if cannot replace then add the line
+ Plus Sign Force addition of template line into script (no attempted replacement).
; Semi-colon Add line as a comment only. (No attempted replacement).
- Minus Sign Delete the line. (No attempted replacement).
& Ampersand Comment the line. (No attempted replacement).

Am I missing something?
Thanks for the support.
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1013
Registered: 04-2004

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, September 17, 2008 - 03:26 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Check the templates. There is a Vista template especially for that.
Top of pagePrevious messageNext messageBottom of page Link to this message

innervations
New member
Username: innervations

Post Number: 1
Registered: 09-2008

Rating: N/A
Votes: 0 (Vote!)

Posted on Wednesday, September 17, 2008 - 12:51 pm:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

I have read the excellent instructions on installing program data files to C:\Users\Public\YourAppName for Vista to avoid the security issues with needing to read and write to these files without administrator access. My question is how can I also detect the OS with InnoScript and place these files correctly for either Vista or XP?

Thanks for any assistance.

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration