- NSIS Discussion
- How to RegDLL this file without messagebox
Archive: How to RegDLL this file without messagebox
DVDK
21st March 2003 23:07 UTC
Automatic NO command to dialog
I have a modern installer where a .ax file has to registred. I'm doing that with the command:
RegDLL "$SYSDIR\something.ax"
During installation a little dialog appears when the .ax file is registred. I have a choice of choosing YES or NO. But I want the installer to choose for me, so the user wont be interupted with this choice. Is that possible?
Joost Verburg
22nd March 2003 11:22 UTC
So the DLL displays a messagebox? Is it no error message?
A possibility would be to use the System plugin to send a keypress. You would have to check which API call to use.
DVDK
22nd March 2003 13:23 UTC
It is not an error message, but a choice that can be made to config the final AX file or registry (Where ever the changes might be stored)
The thing you mentioned sounds a bit difficult. Do not even know what keypress or API call is, but did not know that is was complicated.
Just thought that there was a commando like the message boxes have when you have a choice of choosing YES or NO.
DVDK
30th March 2003 20:55 UTC
How to RegDLL this file without messagebox
I have a file that has to be registered within my modern NSIS installer. I use the command RegDLL, and everything goes fine.
RegDLL "$SYSDIR\DivXdec4.ax"
But this .ax file gives a messagebox when registrering, where the user has a choice of YES or NO. (Its not an error box) I want to make a installer where the choice is being made by the installer and not the user, since this will cause confution when different language is included.
The .ax file can be downloaded here: http://home.no/matricened2/DivXdec4.ax - so you can see what happens. Hope that somebody can help me out.
kichik
30th March 2003 21:05 UTC
Please don't post the same subject twice. Merged.
To your question:
The automatic selection of No solution is far more complicated than I believe you are looking for. I think the best solution for you would be just to consult the creators of this file on a way to registry it silently.
DVDK
30th March 2003 21:25 UTC
hmmm
- not a bad idea, but lets just say...the last! I have seen it in another NSIS installer, so I know that it is possible.
kichik
30th March 2003 21:28 UTC
Did you actually see the message box come up and disappear?
DVDK
30th March 2003 21:31 UTC
Yes, it came shortly and then dissapired after 1 sec.
kichik
30th March 2003 21:33 UTC
What version of NSIS were they using?
DVDK
30th March 2003 21:35 UTC
It was not the modern one, think it is v1.96.
kichik
30th March 2003 21:38 UTC
AFAIK, on a version that's not 2.* they'd have to use an external program. I suggest you just ask them for this program. I don't currently have the time to explain to you how to write this.
DVDK
30th March 2003 21:39 UTC
Ok, thanks alot anyway cause it helps me on the way. Also noticed that another file was being extracted so that might be it. Will return with this subject here if I find a solution.
DVDK
28th April 2003 00:53 UTC
What to do
I still trying to solve this problem, but havent found a solution for it yet. So I was wondering if there is a NSIS command that can close the dialog window that appears upon installation (RegDLL).
The dialog contains a question between YES or NO as written before. I does not matter if I cant choose, just as long as the dialog window closes by itself or does not appear at all.
Hope that a solution can be found :up:
kichik
28th April 2003 15:48 UTC
Here's a little plug-in that doesn't let any dialogs to be created (a message box is a dialog). The message box still beeps, but I'm a bit short on time so I went on the easy solution instead of removing the beep too.
Attached with an example. Put the DLL in your plugins directory, do whatever you want with the source.
Make sure you:
- Do not remove the /NOUNLOAD switch
- Always call stop
- Do not start the plug-in before you really need it and stop it as fast as you can
DVDK
28th April 2003 16:44 UTC
What a mate
Thank you mate. Really nice of you that you took the time to compile this. No other words than: GREAT! :D