PDA

View Full Version : Silent install


davels
10-09-2008, 09:52 AM
Hello,

I'm trying to use the silent mode but I can't install my application in this way.
When I launch it with setup.exe "/S:c:\setupvars.ini" only few things are done.

I read on a previous version that all screen event like next, previous, ... are not executed, is it true?
My installation is really personnalised, is it possible to use these event in silent mode?

A copy of my ini files :

[SetupValues]
%LangSelection%=605
%Code%=-_8wy_ohjm
%KeyCode%=GDBI
%AppFolder%=c:\EGR2\
%EGR%=EasternGraphics
%TAX%=21
%CURRENCY%=EUR
%UserName%=dave
%UserCompany%=GDBI

jassing
10-09-2008, 07:58 PM
I read on a previous version that all screen event like next, previous, ... are not executed, is it true?
My installation is really personnalised, is it possible to use these event in silent mode?

In Silent Mode only:
On Startup
Pre Install
Post Install
On Shutdown

are run -- no screens (or their actions) are performed... otherwise, it's not a "silent" install.

davels
10-10-2008, 04:45 AM
-- no screens (or their actions) are performed... otherwise, it's not a "silent" install.

I believe that operations could be done in silent...

Well this is not really a good news but I will try to find a fast solutions :)

jassing
10-10-2008, 10:23 AM
I believe that operations could be done in silent...

Well this is not really a good news but I will try to find a fast solutions :)

What i've done for clients is to put all the "code" that gets run in ON Next into global functions

function MyScreenNext()
etc.

Then in "pre install" I do:
if _SilentInstall then
MyScreenNext();
end

this way if it's a silent instlal; the screen code still gets run; and there's no "duplication" of code.

I think it's proper that screen code doesn't get run -- what i you had a screen (license screen) -- you would need to define what controls are clicked, in what order etc. How would it know what code to run in OnCtrl?