Get the LocalAppData folder as targetdir on Vista

Got a problem you cannot solve? Try here.
Post Reply
benjoTLV
Posts: 33
Joined: Tue Jan 26, 2010 2:46 pm
Location: Tel Aviv

Get the LocalAppData folder as targetdir on Vista

Post by benjoTLV »

Hi,
I am having problems getting my installer to install on Vista for the current user (standard, not administrator) in the LocalAppData folder.
When I use the variable $MYAPPDATA$, it installs my app in the AppData/Roaming folder of Vista for the current user.

Which variable should I use in the targetdir field?

Thanks
mohoch
Posts: 4
Joined: Wed Jan 27, 2010 3:28 am

I have the same problem

Post by mohoch »

does anyone know how to do that?
benjoTLV
Posts: 33
Joined: Tue Jan 26, 2010 2:46 pm
Location: Tel Aviv

Any idea for getting LocalAppData folder as targetdir?

Post by benjoTLV »

Anyone has any idea for this?
I would really like much more my app being installed on "local" than on "roaming"
I really need help, I searched Google, the Forum, everywhere... can't find it!

Thanks
ekoindri
Posts: 14
Joined: Mon Jan 25, 2010 9:31 pm
Contact:

Post by ekoindri »

you can set $MYAPPDATA$ with your path or use custom folder to make more dynamic.

regards,


// ekoindri
benjoTLV
Posts: 33
Joined: Tue Jan 26, 2010 2:46 pm
Location: Tel Aviv

Post by benjoTLV »

Actually when I use $MYAPPDATA$ in $TARGETSIR$, the installation is performed on ApplicationData/Roaming instead of ApplicationData/Local (in VISTA)...

Any idea how to get to the ApplicationData/Local folder?
Thanks
ekoindri
Posts: 14
Joined: Mon Jan 25, 2010 9:31 pm
Contact:

Post by ekoindri »

How about to create new dialog and put 1 edit and 1 button inside it. Then you you doubleclick the button as custom dialog. Use this dialog to look for the path app/data and then refer to the variabel MYAPPDATA

regards,


\\\\ekoindri
benjoTLV
Posts: 33
Joined: Tue Jan 26, 2010 2:46 pm
Location: Tel Aviv

Post by benjoTLV »

Sorry but I don't understand your answer.
In Installaware you have the ability to define in your installer in which folder your application will be installed without popinp any "custom dialog"
You just put a variable in the Targetdir field in the run program installaware dialog.
There are several choices of variables like $PROGRAMFILES$ or $MYAPPDATA$...

My question is very straightforward I think: What is the variable name to make the installer install my application in "ApplicationData/Local" folder on Vista?
benjoTLV
Posts: 33
Joined: Tue Jan 26, 2010 2:46 pm
Location: Tel Aviv

Post by benjoTLV »

hi,
I am sorry if my question is stupid but I really need an answer for this... does anyone from installaware know how I can get the installer to install my app in Applicationdata/local instead of roaming folder on Vista?

Thanks
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Use Get Folder Location on the System->CD Burning directory. It will return something like:
C:\\Users\\<user>\\AppData\\Local\\Microsoft\\Windows\\Burn\\Burn\
Then, you can call Extract Path on that path four times, and you're done:

Code: Select all

Get Folder Location System->CD Burning Directory into FOLDER
Extract Parent Folder: FOLDER
Extract Parent Folder: FOLDER
Extract Parent Folder: FOLDER
Extract Parent Folder: FOLDER
MessageBox: FOLDER, $FOLDER$
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
benjoTLV
Posts: 33
Joined: Tue Jan 26, 2010 2:46 pm
Location: Tel Aviv

Post by benjoTLV »

Thanks!! I did not imagine that it required a work around, I thought I was just missing the right variable!

Thanks a bunch
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: Get the LocalAppData folder as targetdir on Vista

Post by MichaelNesmith »

This behavior has been updated in InstallAware 9 R2 as follows: the Get Folder Location command now has a new parameter to directly obtain this folder path on all operating systems directly.

Please help yourself to a release candidate of InstallAware 9 R2 to ensure it works to your satisfaction:
http://www.installaware.com/forum/viewtopic.ph ... 3&start=30
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
dunion
Posts: 106
Joined: Tue Oct 14, 2008 10:43 am

Re: Get the LocalAppData folder as targetdir on Vista

Post by dunion »

Which one is it in the list - System application directory but not checking all users?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: Get the LocalAppData folder as targetdir on Vista

Post by MichaelNesmith »

Other->Local Application Data (at the very end of the list)
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
gsaunders
Posts: 81
Joined: Mon Aug 16, 2010 2:37 pm

Re: Get the LocalAppData folder as targetdir on Vista

Post by gsaunders »

MichaelNesmith wrote:Other->Local Application Data (at the very end of the list)
I am just now playing with InstallAware as a trial and this option is available only in the MSICode, but NOT in the Design portion. It just isn't in the list. But it is in the list from the MSICode section.
dunion
Posts: 106
Joined: Tue Oct 14, 2008 10:43 am

Re: Get the LocalAppData folder as targetdir on Vista

Post by dunion »

If you assign a variable to the result in the MSI code first, then that path will show up in the designer to be able to add files and folders to.
Post Reply