Where is $ALLAPPDATA$ defined?

Got a problem you cannot solve? Try here.
Post Reply
somnetics
Posts: 21
Joined: Tue Aug 14, 2012 8:48 am
Location: St. Paul Minnesota

Where is $ALLAPPDATA$ defined?

Post by somnetics »

A file that I have designated as going to $ALLAPPDATA$ ends up under the c:\program Files path. How can I explicitly set this?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Where is $ALLAPPDATA$ defined?

Post by FrancescoT »

Dear User,

By default, the ALLAPPDATA variable is initialized as;

Code: Select all

Get Common Folder Location System->Application Data Directory into ALLAPPDATA
Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
somnetics
Posts: 21
Joined: Tue Aug 14, 2012 8:48 am
Location: St. Paul Minnesota

Re: Where is $ALLAPPDATA$ defined?

Post by somnetics »

I thought so. That's why I was surprised to find the file in a folder under the folder that the executable is stored it.

I didn't create this project. Does this say that the project is not using the default location?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Where is $ALLAPPDATA$ defined?

Post by FrancescoT »

Yes probably, but I can't be sure of intentions of those who created the project.

or... an unwanted variable assignment.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
somnetics
Posts: 21
Joined: Tue Aug 14, 2012 8:48 am
Location: St. Paul Minnesota

Re: Where is $ALLAPPDATA$ defined?

Post by somnetics »

I searched the MSI for all instances of AllAppData and the only time it is initialized is the line you talked about above.

Get Common Folder Location System->Application Data Directory into ALLAPPDATA

Can something in the project affect what "Get Common Folder Location System->Application Data Directory" returns?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Where is $ALLAPPDATA$ defined?

Post by FrancescoT »

Which is tha IA version you are using?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
somnetics
Posts: 21
Joined: Tue Aug 14, 2012 8:48 am
Location: St. Paul Minnesota

Re: Where is $ALLAPPDATA$ defined?

Post by somnetics »

InatallAware NX (Build 10.02.12) Mooooya

Thank you for your help.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Where is $ALLAPPDATA$ defined?

Post by FrancescoT »

Dear User,

could you please use the attached sample project?

The sample retrieves the "Application Data Directory" for allusers (if applicable) and for current user.
The enclosed file also contains the ready to run exe package.

When execute on a WIN 7 machine, it should display the following results.
The attachment output.gif is no longer available
Regards
Attachments
output.gif
output.gif (17.09 KiB) Viewed 7785 times
allppdatatest.rar
(1.34 MiB) Downloaded 414 times
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply