Problem w/ Property & Search - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

toschlog
Posts: 26
Joined: Fri Jun 10, 2011 5:39 pm

Problem w/ Property & Search

I'm trying to install some files into a folder directly in the user's profile folder. For example, I want my data to be in:

c:\users\matt\myapp

To do this, I created a property called USERHOME. (I found that i had to set the default value to a valid file path, so I set it to C:\). Then I set up a "Property Set with Formatted" custom action (under InstallExecuteSeqeuence\Install). The property name is "USERHOME" and the formatted text is "[%USERPROFILE]". In Files and Folders I create a new Property-based folder from USERHOME and create a "myapp" folder under it.

When I run the installer, the data is going to C:\myapp, as if USERHOME isn't being set. When I look in the log file I can see that at least at one point USERHOME is being set correctly, but it appears to be after the data is copied to the wrong folder.

Is there something I need to do to get USERHOME set correctly?

Thanks!
toschlog
Posts: 26
Joined: Fri Jun 10, 2011 5:39 pm

Re: Problem w/ Property & Search

I figured it out. I moved my custom action to InstallExectuteSequence\Begin. It took me a while to figure out that there were more phases available.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem w/ Property & Search

Hello,

Here is an user guide article to help you with this. The "An example: installing in the user profile folder" section would be relevant in your case.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”