Custom Actions - 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!

sydexmike
Posts: 7
Joined: Thu Nov 09, 2006 3:36 pm

Custom Actions

I am updating the support software for our product, and Microfocus says that the new version needs to have a specifically named folder directly on the C drive containing two specified files. I want to have that been done as part of the installation process as a silent install.
Using Advance Installer 4.5, Under Common Application Data of the install I am updating, I added the folder that I need and synchronized it to my C drive. Under custom actions -> Install, I have it set to run the exe file that I need. However, the after running the build and creating a new msi file, the install doesn't work. It installs everything but the folder and its contents. It doesn't put them in the wrong spot, it just doesn't install them. Any ideas?
Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I don't really understand what you are trying to do. Please be more specific and give me more details!

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sydexmike
Posts: 7
Joined: Thu Nov 09, 2006 3:36 pm

When I am running my install, I need to have a specific folder created on the target computer. I have silent install working as a custom action, and that functions properly, but the folder itself is not created. It seems that under Project Definition --> Files and Folders I should be able to add a new folder to that list on the target computer's C:\ Drive. However, the only type of folder I can add directly underneath the target computer is property based, and I don't think that is what I want, although I don't know for sure. I'm trying to avoid having to write a separate install program to install this one folder.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Usually Windows is installed on the C:\ drive therefore you can put your folder in the "Windows Volume" folder in the "Files and Folders" page.

However, if you want to install that folder specifically on the C:\ drive then you use a property based folder. You can create a property in the "Install Parameters" page. For example:

Code: Select all

_Name__|___Value__
DIR    |      C:\
After that in the "Files and Folders" page you create a property based folder using the above property. That folder will represent the C:\ drive and you can put there the folder you want.

Note that in this case if the target computer does not have a C:\ drive then the installer will give an error.

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sydexmike
Posts: 7
Joined: Thu Nov 09, 2006 3:36 pm

Thanks so much! It worked

Return to “Common Problems”