Why the msi file will not response when register ax file? - Advanced Installer Community
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Why the msi file will not response when register ax file?

Hi, I have a install package, I'm trying to install some file. but there is a ax file always let the install thread no any response.
I check the log, there is display:
SelfRegModules: File: file.ax, Folder: C:\WINDOWS\system32\

and there is no any response.but I still can use regsvr32 command register it manually.
So is that a bug, how can I fixed it ?
Can you help me check it please? thanks.
Attachments
example.rar
(689.5 KiB) Downloaded 252 times
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why the msi file will not response when register ax file

Hi, Is there any one can download my example and check? thanks.
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why the msi file will not response when register ax file

Is that a BUG from Advanced Installer 10.5?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Why the msi file will not response when register ax file

Hello,

I'm not sure why this happens. However, since you are able to manually register the above file using regsvr32 tool, then you can use a custom action which will call the regsvr32 to register your file. Here are the steps to proceed:
- go to "Custom Actions" page and add a "Launch File" custom action with sequence, scheduled after "Install Execution Stage -> Add Resources" actions group, like this:
  • File To Launch: regsvr32.exe
    Command Line: [#file.ax]
    Working Directory: [SystemFolder]

    Run As Administrator: checked
    Execution Time: Deferred
    Execution Stage Condition: Install
- build and run your project

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why the msi file will not response when register ax file

Daniel wrote:Hello,

I'm not sure why this happens. However, since you are able to manually register the above file using regsvr32 tool, then you can use a custom action which will call the regsvr32 to register your file. Here are the steps to proceed:
- go to "Custom Actions" page and add a "Launch File" custom action with sequence, scheduled after "Install Execution Stage -> Add Resources" actions group, like this:
  • File To Launch: regsvr32.exe
    Command Line: [#file.ax]
    Working Directory: [SystemFolder]

    Run As Administrator: checked
    Execution Time: Deferred
    Execution Stage Condition: Install
- build and run your project

Let us know if this helped.

All the best,
Daniel
Thank you for reply. But I still hope you can check it . I already give you the aip file with ax file. Why don't you just download and debug it ?
Then maybe you'll find the problem source and If that's your application problem you also can fixed the BUG. thanks.
qakmak
Posts: 21
Joined: Sun Dec 22, 2013 7:20 pm

Re: Why the msi file will not response when register ax file

Daniel wrote:Hello,

I'm not sure why this happens. However, since you are able to manually register the above file using regsvr32 tool, then you can use a custom action which will call the regsvr32 to register your file. Here are the steps to proceed:
- go to "Custom Actions" page and add a "Launch File" custom action with sequence, scheduled after "Install Execution Stage -> Add Resources" actions group, like this:
  • File To Launch: regsvr32.exe
    Command Line: [#file.ax]
    Working Directory: [SystemFolder]

    Run As Administrator: checked
    Execution Time: Deferred
    Execution Stage Condition: Install
- build and run your project

Let us know if this helped.

All the best,
Daniel
Hi Daniel,I'm trying use the way you told me test it . but when I run it on XP, it will always display a dialog:

but If I disable: run as administrator it will fine. then how can set it don't display on xp but still run as administrator?
Attachments
select user.png
select user.png (13.67 KiB) Viewed 5129 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Why the msi file will not response when register ax file

Hello,
Thank you for reply. But I still hope you can check it . I already give you the aip file with ax file. Why don't you just download and debug it ?
Then maybe you'll find the problem source and If that's your application problem you also can fixed the BUG. thanks.
I've tested your scenario and indeed I was able to replicate the behavior. However, this could be caused by a Windows Installer limitation. Our "Self register native library" registration option uses Windows Installer "SelfRegModules" action to register files. Please keep in mind that the self registration method have many drawbacks and it is against Microsoft guidelines. Therefore the recommended method to register a file is by using the "Extract registration info from native library" option.
Hi Daniel,I'm trying use the way you told me test it . but when I run it on XP, it will always display a dialog:
but If I disable: run as administrator it will fine. then how can set it don't display on xp but still run as administrator?
I'm afraid this is the normal behavior on Windows XP OSs when enabling our "Run as administrator" option and you cannot suppress this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”