| Author |
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: |
|
The legacy template will take care of that. You should install legacy applications in the \Users\Public\YOURCOMPANYNAME\YOURAPPNAME\ folder |
   
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: |
|
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? |
   
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: |
|
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. |
   
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: |
|
No, there is nothing special to install InnoScript. |
   
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: |
|
Since I have innosetup and istool already installed is there anything special I have to do before I install innoscript? |
   
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: |
|
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. |
   
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: |
|
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? |
   
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: |
|
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. |
   
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: |
|
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. |
   
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: |
|
I am not sure how to "add a template". I am using innosetup 5.3.7 and istool 5.3.1. |
   
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: |
|
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. |
   
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: |
|
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 ? |