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 * Inno Setup - General Questions * Set default install directory based on OS < Previous Next >

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

randem
Moderator
Username: randem

Post Number: 1481
Registered: 04-2004

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

Posted on Thursday, February 11, 2010 - 07:34 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

The legacy template will take care of that. You should install legacy applications in the \Users\Public\YOURCOMPANYNAME\YOURAPPNAME\ folder
Top of pagePrevious messageNext messageBottom of page Link to this message

puffadder
New member
Username: puffadder

Post Number: 7
Registered: 02-2010

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

Posted on Thursday, February 11, 2010 - 07:26 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Yes I know. I did think that the commonappdata folder was a good place to install legacy apps that need to write to the application directory? I have a vb6 app that uses an Access 2000 database. I also write to a local ini file and create log files in the application directory. Where would you suggest I install the app if not in the commonappdata folder?
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1480
Registered: 04-2004

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

Posted on Thursday, February 11, 2010 - 07:21 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Also {commonappdata} should not be the default installation folder.

BTW: Has your application been updated for a Limited User Account? You cannot have read-write files in the default {systemdrive}\Program Files\ folder.
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1479
Registered: 04-2004

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

Posted on Thursday, February 11, 2010 - 07:07 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

No, there is nothing special to install InnoScript.
Top of pagePrevious messageNext messageBottom of page Link to this message

puffadder
New member
Username: puffadder

Post Number: 6
Registered: 02-2010

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

Posted on Thursday, February 11, 2010 - 07:05 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Since I have innosetup and istool already installed is there anything special I have to do before I install innoscript?
Top of pagePrevious messageNext messageBottom of page Link to this message

puffadder
New member
Username: puffadder

Post Number: 5
Registered: 02-2010

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

Posted on Thursday, February 11, 2010 - 07:03 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

okey dokey then. I just purchased innoscript. I am all for not reinventing the wheel. Can you expedite the purchase and send me the registration code sooner rather than later? Thanks.
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1478
Registered: 04-2004

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

Posted on Thursday, February 11, 2010 - 06:59 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

In Inno Setup you would need to write code to accomplish the task of changing the DefaultDirName depending on the OS. In InnoScript this has been done for you and all you would need to do is to add the legacy template. Are you familiar with writing code for Inno Setup?
Top of pagePrevious messageNext messageBottom of page Link to this message

puffadder
New member
Username: puffadder

Post Number: 4
Registered: 02-2010

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

Posted on Thursday, February 11, 2010 - 06:52 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Currently I have ....

DefaultDirName={commonappdata}{#MyAppName}

This is a hard-coded constant I thought. So if I install to XP for example, it will not install to c:\program files.

Not sure I am following what you want me to do.
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1477
Registered: 04-2004

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

Posted on Thursday, February 11, 2010 - 06:47 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

Sorry, That was for InnoScript... In Inno Setup just add/change the directive "DefaultDirName={commonappdata}\{YOURAPPNAME}" in the [Setup] section to change the default installation folder name.
Top of pagePrevious messageNext messageBottom of page Link to this message

puffadder
New member
Username: puffadder

Post Number: 3
Registered: 02-2010

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

Posted on Thursday, February 11, 2010 - 06:44 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

I am not sure how to "add a template". I am using innosetup 5.3.7 and istool 5.3.1.
Top of pagePrevious messageNext messageBottom of page Link to this message

randem
Moderator
Username: randem

Post Number: 1475
Registered: 04-2004

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

Posted on Thursday, February 11, 2010 - 06:38 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

The default installation for Windows 7 and Vista can be set by adding the template named "Legacy". It will automatically determine if you are running Vista / Windows 7 or the prior OS's and set the default installation folder accordingly. The {commonappdata} is not the default installation folder though. If you want to change the installation folder manually you can go to Settings->Parameters from the top menu list to change the DefaultDirName parameter to what you want it to be.
Top of pagePrevious messageNext messageBottom of page Link to this message

puffadder
New member
Username: puffadder

Post Number: 1
Registered: 02-2010

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

Posted on Thursday, February 11, 2010 - 06:32 am:   Edit Post Delete Post View Post/Check IP    Move Post (Moderator/Admin Only)

How would I set the default installation directory that the user is prompted for to be {commonappdata}\myappname for Windows Vista and Windows 7 but set it to c:\program files\myappname for all other (earlier) OS's ?

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

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
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