Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

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

Hi,

The VB project you have generates an EXE file and shows a form, this is not the same project type outlined by Eusebiu in the screenshot.
Please install Wix Toolset and create exactly that project type, this should have as output and DLL file, not an EXE.

Best regards,
Bogdan
Bogdan Mitrache - 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, Bogdan

I downloaded as well and made a gif. As you can see there is a folder "Adv_CustomAction1" inside the project, which make those DLL.
That rar file has that exe, just to completed to make it easyer for you.
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

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

oöutpvt7t6
Attachments
AdvCustomAction.gif
AdvCustomAction.gif (14.22 KiB) Viewed 5903 times
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

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

the gif shows what I've choosen, its the same as eusebiu shows on his gif.
Made that DLL in that way.
That exefile ist the exe which aip-file shall install.
I put it beside last times as well, so whats wrong
Attachments
VBCustomAction.GIF
VBCustomAction.GIF (38.35 KiB) Viewed 5897 times
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

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

Hi,

As explained in our tutorial this type of custom action creates two DLL files, the one you need to use is the one with the name ending with ".CA", as you can see in the attached picture, under "Source Path" field.

Also, in the "Function" field you need to specify the name of your custom action from the DLL that should be called. You can have multiple custom actions in a DLL so the MSI requires for your specify it.
Even if there is a single custom action in it you still need to specify the function name.

Please analyze carefully our tutorial if you will also need to debug your custom action.

Best regards,
Bogdan
Attachments
custom Action.png
custom Action.png (14.44 KiB) Viewed 5892 times
Bogdan Mitrache - 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

My first attachmant, seeable here, third step.
C:...AdvTestDLL\BeforInstallCopy.dll

It has ".DLL" instaed of "CA.DLL".

First notice about "Uninstall" and "Maintenance" has came with third answer of eusebiu.

(Sat Apr 13, 2013 1:43 am ) again an attachment with DLL instead of CA.DLL

(Sat Apr 20, 2013 7:37 pm ) dito

(Wed Apr 24, 2013 6:43 pm ) I had to make you sure guys, that it has CA.DLL, AND that I havnt use an exe instead of DLL(have to read it more times than one to belive it)

I will try to analyze, I promiss, really
(I wish I could talk to you in german, I would have better words)

Return to “Building Installers”