I was trying the silent check code that you posted on your other site. I removed everything from the client script and added your code. I adjusted the "g_TargetVersion" in the service script to a version that would cause the install to update. However, with or without the "/show" parameters set on the command line of the shortcut. I do see that the law was generated in the return code was zero.
However, if I also run the command line without the "/show" parameter again I seethe log file generated in the return code is zero, but nothing is updated and the install does not show up. Is there something else I need to be doing here? Do I need to also include the default show screen? It's obvious I'm not understanding this totally.
Oh, by the way. I also set the "AS invoker".
------------------------------------------
-- Download and run the Server Script
------------------------------------------
-- Suppress all screens until an update is available?
g_SilentUntilUpdateAvailable = true;
-- check command line arguments passed and see if g_SilentUntilUpdateAvailable
-- should be overridden
for i, arg in _CommandLineArgs do
if (String.CompareNoCase(arg, "/show") == 0) then
-- updater was called with the "/show" argument (from the Start Menu shortcut)
g_SilentUntilUpdateAvailable = false;
end
end
Thanks,
James
However, if I also run the command line without the "/show" parameter again I seethe log file generated in the return code is zero, but nothing is updated and the install does not show up. Is there something else I need to be doing here? Do I need to also include the default show screen? It's obvious I'm not understanding this totally.
Oh, by the way. I also set the "AS invoker".
------------------------------------------
-- Download and run the Server Script
------------------------------------------
-- Suppress all screens until an update is available?
g_SilentUntilUpdateAvailable = true;
-- check command line arguments passed and see if g_SilentUntilUpdateAvailable
-- should be overridden
for i, arg in _CommandLineArgs do
if (String.CompareNoCase(arg, "/show") == 0) then
-- updater was called with the "/show" argument (from the Start Menu shortcut)
g_SilentUntilUpdateAvailable = false;
end
end
Thanks,
James
Comment