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!

vcapeluto
Posts: 13
Joined: Fri Sep 16, 2011 2:53 pm

How works the Automation?

Hello,

I want to know how automation works, i need to make some changes in one XML file included in the installer at the moment the user download the installer. I guess i can do it with automation.
Please help to do that, that's why we bought this installer.


Thanks
Last edited by vcapeluto on Fri Sep 16, 2011 9:09 pm, edited 1 time in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Hoy works the Automation?

Hi,

I'm not sure what you mean by "automation". Can you please give me more details?

Regarding the XML, you can use our XML editor in Files and Folders page. Please note that this feature is available only in Enterprise and Architect projects. To change your project type you can use Project -> Options menu.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vcapeluto
Posts: 13
Joined: Fri Sep 16, 2011 2:53 pm

Re: Hoy works the Automation?

Hi,

I just need to change my msi package depending of the user id generated at the moment of the download. That's what i need.
Can i do it with Advanced installer?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Hoy works the Automation?

Hi,
I just need to change my msi package depending of the user id generated at the moment of the download. That's what i need.
Can you please give me more details about this? What do you need to change?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vcapeluto
Posts: 13
Joined: Fri Sep 16, 2011 2:53 pm

Re: Hoy works the Automation?

Let me explain you in an easier way what i want to do:

1- The user give his/her demographic information to the web portal.
2- I need to save the demographic information in the XML file included in msi package.
3- The user download the msi package.
4- When application starts i have all user's demographic information in it.

That means i have one predefined msi package and i have to generate another one at the moment of the download.
Is there some easier way to do that or can i do with Advanced installer?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How works the Automation?

Hi,

This is not really supported by Windows Installer and it's not a correct approach. The information you need from the user should be retrieved through custom installation dialogs. The properties associated with controls on these dialogs can then be used in your XML file in Files and Folders page.

All user-related information in all installers is handled this way.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vcapeluto
Posts: 13
Joined: Fri Sep 16, 2011 2:53 pm

Re: How works the Automation?

Hi cosmin,

Thanks for your appropriate support. Can i create a random code with this dialog? I have to assign that code to the workstation.
vcapeluto
Posts: 13
Joined: Fri Sep 16, 2011 2:53 pm

Re: How works the Automation?

Hello,

I encounter this http://www.advancedinstaller.com/user-g ... kager.html. Can i recompile the msi project and update a file in it with this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How works the Automation?

Hi,
Can i create a random code with this dialog? I have to assign that code to the workstation.
This is not supported directly by Advanced Installer, but you can try creating a custom action for it. We don't have sample custom actions for this, so you will need to write your own custom code.
I encounter this http://www.advancedinstaller.com/user-g ... kager.html. Can i recompile the msi project and update a file in it with this?
The Repackager is designed to give you a starting point for your installer, it's not designed to work this way.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vcapeluto
Posts: 13
Joined: Fri Sep 16, 2011 2:53 pm

Re: How works the Automation?

I found this in the user guide.
This is what i want to do, just add a file to the package, can i do that with repackager like this example?
;aic
SetVersion 1.2
AddFile APPDIR\MyFolder C:\Folder\File.txt
AddFile APPDIR\MyFolder “&SAMPLE&File.txt“
SetProperty TESTPROP="TestValue"
Save
Rebuild
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How works the Automation?

Hi,

Theoretically you could try using a script which:
- generates your file
- uses the Advanced Installer command line to add it to your project
- build the project
- give the download link to the user

However, the recommended approach is still retrieving the user information through your installation UI.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vcapeluto
Posts: 13
Joined: Fri Sep 16, 2011 2:53 pm

Re: How works the Automation?

cosmin,

I really appreciate your answers. How can i do to create the msi from the beginning with the command line, just giving the project name or something. is it possible?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How works the Automation?

Hi,

Setup projects can only be edited. You cannot create a new project from command line.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vcapeluto
Posts: 13
Joined: Fri Sep 16, 2011 2:53 pm

Re: How works the Automation?

I mean generate the msi file from my project already created. That's what you call edit?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How works the Automation?

Hi,

To build a project from the command line you can use a command which looks like this:

Code: Select all

[<path>\]AdvancedInstaller.com /build <project_file_path>
For example, the actual command line can be:

Code: Select all

"C:\Program Files (x86)\Caphyon\Advanced Installer 8.5\bin\x86\AdvancedInstaller.com" /build "C:\Users\CosminPirvu\Desktop\MySetup\setup.aip"
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”