eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

launch attached file: DLL, but needed before install

Hello everybody,
(using advanced 10, VS10)
to launch an attached file(Custom Actions->Add Custom Actions-> Launch attached file),
was my idea to copy an excel file, before it is overwriten from the new installation.
But it seems so, at last its not possible, cause those dll-file, is not usable before the installation has finishd, cause doesn't exist before, or I'm wrong here?
Or is there any other way.

best regards Eric
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: launch attached file: DLL, but needed before install

Hi Eric,

You can use the DLL file inside your "Launched attached file" custom action at any moment during the installation, not only after the installation has finished. To achieve this you can place your custom action anywhere you want in the "Installation Sequence" pane.

Also, you can prevent your file from being overwritten by enabling its preserve operation. In this case, during upgrade, the file will be backed up before the uninstallation of the old version and will be restored at the installation of the new version.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: launch attached file: DLL, but needed before install

Hi Eusebiu,

I put my api project as attachment. If you gonna use ist, I hope the same shall happen as it happend on my maschine.
The best translation I can give you: "a dll, file which is needed for this installation could not start(or launch)".

get a nice weekend
Attachments
AdvTestDLL.aip
(12.33 KiB) Downloaded 1202 times
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: launch attached file: DLL, but needed before install

Hi Eric,

I can't test your project on my machine because I don't have your DLL file to launch it inside the custom action. However, some custom actions need elevation for being able to run, so they must be run as "deferred" with "no impersonation" and in this case they can be placed only between "Install Execution Stage -> Preparing" action group and "Install Execution Stage -> Finish Execution" action group.

If your custom action doesn't require elevation you can place it under the "Wizard Dialogs Stage -> Paths Resolution" action group and see if the problem persists.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: launch attached file: DLL, but needed before install

the only change I've got, my webbroser always starts(mozilla)
the errormessage is the same
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: launch attached file: DLL, but needed before install

Hi Eric,

Can you please follow the steps below and see if the behavior persists:
- go in the Custom Actions page
- using the "drag and drop" method move your custom action under the "Install Execution Stage -> Preparing" action group
- in the right pane check the "When the system is being modified (deferred)" radio button and also check the "Run under LocalSystem accound with full privileges (no impersonation)" checkbox
- build and run the project

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: launch attached file: DLL, but needed before install

as you can see, I've done it as you wrote.
The whole changed I got, my browser is gonna start always(it hasen't happend before)

The Errormessage is still the same
Attachments
AdvTestDLL.gif
AdvTestDLL.gif (24.75 KiB) Viewed 16122 times
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: launch attached file: DLL, but needed before install

Hi,

First, the "Uninstall" and "Maintenance" check boxes must be unchecked to make sure they don't cause any problem during the upgrade of your application.

Then, make sure that your DLL file does not have any dependence with other DLL files.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: launch attached file: DLL, but needed before install

I've done it.
Got the same errormessage, as I got before, and my browser always starts.

There is only one DLL, that Adv.aip has to use. The Application has just one more DLL inside, but with annother name.

That you gonna use those aip file, which I have post here, together with any DLL, which you have probably beside you, its not possible?

greeting
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: launch attached file: DLL, but needed before install

Hi,

I tested your .AIP project with one DLL file I have and everything worked well to me. Did you try to use another DLL file to see if the behavior
persists?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: launch attached file: DLL, but needed before install

Hi Eusebiu,

here there is an attachment, which has all what I used on my maschine. That VS project(makes those dll file), dll-file, exe-file(which will installed), aip-file.
Hopefully this shall briing out the problem.

all the best
eric
Attachments
AdvTestDLL.zip
(54.34 KiB) Downloaded 830 times
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: launch attached file: DLL, but needed before install

Hi Eric,

It seems that the DLL you created is not fully fledged. In order to create one, first install the WiX Toolset free software and then create a "VB Custom Action" project like in the image below.

Best regards,
Eusebiu
Attachments
VB Custom Action.png
VB Custom Action.png (74.29 KiB) Viewed 16098 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: launch attached file: DLL, but needed before install

Hi Eusebiu,
what about that Konstruktor, inside my DLL sample?
Even a 'normal' is not able for that handling, at last during installation pricess, those dll will never declared,

It's something I should have seen by myself, well, but ...as you know maybe.
If there would be a phonenumber, minimally for clients who has bought your app, perhaps with a limit (three calls a month).

If I would stay here with my real name, its gonna kill me, cause its something for first beginners.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: launch attached file: DLL, but needed before install

Hi Eric,

I'm afraid that we only answer sales and marketing inquiries over the phone - not support questions. This is because answering installer questions takes time, it can't be done "instantly”. Research must be done, issues to be reproduced, answers are looked up, etc.

If you want to have a private discussion you can send your e-mail to support at advancedinstaller dot com.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: launch attached file: DLL, but needed before install

Hi Eusebiu,
here again my whole project, (using now "VB Custom Action", as you wrote)
But, nothing has changed, got the same error message, as I got last times.

nice weekend
Attachments
AdvTest_CustAction.rar
(725.54 KiB) Downloaded 895 times

Return to “Building Installers”