$PROGRAMFILES$ not assigned a value

Got a problem you cannot solve? Try here.
Post Reply

How to you rate IA tecnical support

1 = Bad
1
17%
2 = OK
3
50%
3 = Better then most
2
33%
 
Total votes: 6

Ron Wyman
Posts: 12
Joined: Mon Oct 01, 2007 2:58 pm
Location: New York, NY
Contact:

$PROGRAMFILES$ not assigned a value

Post by Ron Wyman »

Hi All,

For some reason the var $PROGRAMFILES$ is not getting translated when the setup has been complied and run. I have made no customization to the MSICode as I am new to the product but on then Destination screen I'm seeing $PROGRAMFILES$\\My Product's name as a default location for the end user. Any help is appreciated.

Also the remaing Diskspace on the same screen reads -56,381,505 bytes whats with this?

Ron Wyman
rickrat
Posts: 11
Joined: Tue Oct 02, 2007 10:20 am

Post by rickrat »

try $TARGETDIR$ which equates to $PROGRAMFILES$\\$TITLE$

Rick
Installaware 7.01
Ron Wyman
Posts: 12
Joined: Mon Oct 01, 2007 2:58 pm
Location: New York, NY
Contact:

Post by Ron Wyman »

Thanks for the reply Rick,

But I have not touch the MSICode this should just work. I think the $PROGRAMFILES$ has been removed some how as I do not see it on the target folders list any more. Any idea as to how to get it back?

Thanks
Ron
rickrat
Posts: 11
Joined: Tue Oct 02, 2007 10:20 am

Post by rickrat »

You just have to edit that dialog and change it to $TARGETDIR$.

Rick
Installaware 7.01
Ron Wyman
Posts: 12
Joined: Mon Oct 01, 2007 2:58 pm
Location: New York, NY
Contact:

Post by Ron Wyman »

Thanks for the help Rick but I bit the bullet and start the project over. I didn’t want to worry about this in the future.

Thanks again and I hope I can return the help in the future.

P.S. I think IA needs a few more maintenance release as there a few issues like this I came across. More QA testing!
norbertjurkiewicz
Posts: 16
Joined: Thu Aug 02, 2012 11:07 am

Re: $PROGRAMFILES$ not assigned a value

Post by norbertjurkiewicz »

I am having the exact issue, $PROGRAMFILES$ is no getting assigned a value.

My MSI code looks like this.

Code: Select all

  Set Variable TARGETDIR to $PROGRAMFILES$\$COMPANY$\$TITLE$
The runtime result is
example of untranslated var
example of untranslated var
Untitled.png (39.33 KiB) Viewed 13884 times
Build:
IA2012 Moooya.9.26.11

I should also mention, the initial script was generated using the project wizard and I didn't modify any of the MSI directly. Doing a search in the MISCode doesn't show the $PROGRAMFILES$ being assigned anywhere.
norbertjurkiewicz
Posts: 16
Joined: Thu Aug 02, 2012 11:07 am

Re: $PROGRAMFILES$ not assigned a value

Post by norbertjurkiewicz »

I was able to use this as a workaround

Code: Select all

  Get Folder Location System->Program Files Directory into PGFILES
  Set Variable TARGETDIR to $PGFILES$\$COMPANY$\$TITLE$
However, I'd like to understand why the otherway isn't working if it comes up with other variables.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: $PROGRAMFILES$ not assigned a value

Post by FrancescoT »

Dear User,

What happens if you create a new project from scratch?

Anyway, I haven't found this issue.

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
norbertjurkiewicz
Posts: 16
Joined: Thu Aug 02, 2012 11:07 am

Re: $PROGRAMFILES$ not assigned a value

Post by norbertjurkiewicz »

This was created from scrach using the wizard. I don't relaly want to start another one and go through all the cusomizations beacuse I almost have it where I need it. It looks like I'm having issues with the "Get Folder Location" variables that should be predefined but are not. http://www.installaware.com/forum/viewt ... f=2&t=8744

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

Re: $PROGRAMFILES$ not assigned a value

Post by FrancescoT »

Dear User,

I have just tried to replicate your issue using th wizard ... but works fine.

Probably exist something else that causes your issue ... I really do not know.

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
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: $PROGRAMFILES$ not assigned a value

Post by tzachk »

Just a thought,

Did you make sure that you use $PROGRAMFILES$ after it was initialized?
If you opened the dialog before you initialized the parameter, you'll get $PROGRAMFILES$ instead of the actual path to Program Files.

Regards,
T.
Post Reply