Archive: InstallOptions page destroys inner dialog?


InstallOptions page destroys inner dialog?
  Hey all,

I have a custom InstallOptions page followed by a call to the InetC plugin.

It seems that InstallOptions destroys the inner dialog of the installer after it finishes displaying the page. InetC needs an inner dialog to work (for example in silent mode).

Is there any workaround for this? Maybe creating an empty inner dialog, etc...

Thanks


In the silent mode Inetc creates hidden modeless popup with parent window $HWNDPARENT, so I guess it can continue it's job between pages if launched in the separate thread, but current implementation returns control to installer when download finished/cancelled only. So I don't see how Inst. Opt. can stop download. In the old (NSISdl) mode - yes, inner dialog will be destroyed, but (again) - if inetc returned control to intaller, this means 'all done'.
Short script can clarify the situation.


Script is attached, "ioA.ini" can be any IO file, like the one in "C:\Program Files\NSIS\Examples\Modern UI\"

Inetc always returns "Dialog Error"


Not repeats.


HTTP/1.1 200 OK

Cache
-Control: private
>Content-Type: text/html
Server: GWS/2.1
Content-Length: 0
Date: Mon, 01 Jan 2007 11:29:32 GMT
>
HTTP Headers from downloaded file are above, your script works fine.. Using latest plug-in and NSIS versions. Also tested with localhost. Are you sure your plug-in version is correct?
And please note - your second custom page may looks 'not responding' while plug-in works. in 'creator_function'.
Attached version puts additional string with error code and current parameters to stack, so use 2 Pops after plug-in' call.

Thanks Takhir, the version you attached got it working. Can you also attach the source?


Attached. The difference compare to wiki version are: global vars cleanup and GetLastError() for dialog creation. Please test this and if OK I'll put it to wiki :)


Finished testing the included binary, no problems at all ;)

Thanks