Add Primary Output for project. - 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!

ankitkshah
Posts: 13
Joined: Mon Dec 20, 2010 1:28 pm

Add Primary Output for project.

Hi,

I am trying to add Primary output for project, but I can't found how to add it in Advanced Installer?!. Second thing, latest version of .NET 4.0 is provide facility that, when we add the primary output for project then all dependencies for the project is automatically added. If advance installer having this facility then how can I achieve this? If advance installer does not having this facility then I want to know that how to add dependencies for the project?

Thanks,
Ankit
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Add Primary Output for project.

Hi Ankit,
I am trying to add Primary output for project, but I can't found how to add it in Advanced Installer?!
You can do this from the Builds Page -> Configuration tab. Here, you can also configure the way the build MSI's dependencies are organized.

Unfortunately, we have no setting for the project dependencies. However, I can think of none other then your project resources which you can manually organize on your hard drive in a path relative to your project's location.
Can you please tell us what other dependencies would you need to specify?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ankitkshah
Posts: 13
Joined: Mon Dec 20, 2010 1:28 pm

Re: Add Primary Output for project.

hi mihai.petcu,

Yes, obviously all the dependencies stored in Hard Drive. But, my main point is, when I add the Primary output for the project in .NET, then the installer class for that project is called automatically. Can it be achieve using advanced installer? In advanced installer case, as per your suggestion, in Builds Page -> Configuration tab, I didn't find any option to add Primary Output orelse I am doing some wrong.?!! I chose third option Archive installation files into CAB files. I sent you a screen shot. Please let me know if I am wrong?!!
Attachments
Media Tab screenshot.JPG
Media Tab screenshot.JPG (105.39 KiB) Viewed 6268 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Add Primary Output for project.

Hello Ankit,

Unfortunately, this setting is not included in our application.
Can you please give us more details about this dependency you need referenced by Advanced Installer? Maybe we can provide a workaround for you.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ankitkshah
Posts: 13
Joined: Mon Dec 20, 2010 1:28 pm

Re: Add Primary Output for project.

Hello,

Okay.. I am going to explain you what I want.!

My .NET project have installer class., This installer class have install event, I written some code inside that install event, where some exe is execute and some registry is set. I checked Context.Parameters("ALLUSERS") for "Just Me" and "All User". Based on the "Just Me" or "All User" I have some different code to execute. I used some API in the coding. All these code is running under Installer event. Is advance installer is having any feature to execute directly my Installer class of .NET? If you going to suggest me to execute a dll, then please let me know how can I get that user click on "Just Me" or "All User"? Is there any other way, with out using dll? I mean, is there any solution where I can directly call the .NET installer class?

Thanks
Ankit
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Add Primary Output for project.

Hi Ankit,
I mean, is there any solution where I can directly call the .NET installer class?
We have a predefined custom action for this purpose called ".NET Installer Class Action". Here is our user guide reference to it.
If you going to suggest me to execute a dll, then please let me know how can I get that user click on "Just Me" or "All User"?
You can use our predefined dialog called InstallTypeDlg to permit the user choose the type of installation at install time. To add it from the Dialogs page from the "Add Dialog..." context menu.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ankitkshah
Posts: 13
Joined: Mon Dec 20, 2010 1:28 pm

Re: Add Primary Output for project.

Hi mihai.petcu,

I tried with .net Installer class. It's not working. I tried with the code attached in file. Please suggest me asap. I attached a file, check this and please let me know..

Thanks
Ankit
Attachments
installer.txt
(1.81 KiB) Downloaded 300 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Add Primary Output for project.

Hello Ankit,

Unfortunately our support boundaries do not cover debugging custom actions.

My suggestion is to generate a verbose log of the installation and investigate that to see the real fail reason. Here is a thread that deals with some possible error scenarios.

Please send the log to support at advancedinstaller dot com so we can help you investigate as well.

Also, here is another thread that may help you as well.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”