Silent Install

G

Guest

Hi,

I know this topic has been discussed here before but I am having difficulty
achieving a totally silent , promptless install.

Using C# I would like to run an install without any user interaction at all.
I am using wceload to run a cab file.

The code is as follows:

ProcessInfo pi = new ProcessInfo();
if ( CreateProcess("\\Windows\\wceload.exe", TEMP_FILE, pi) )

This runs fine.
In addition I programmatically set the relevant Instl registry key to 0 to
disable the dialog box informing me that the application is already
installed. This works OK.

However I cannot disable the dialog boxes asking me do I want to replace the
already existing files with those newly extracted from the cab file.

I have been trying to use the /nui switch but have been unsuccessful in
getting it to work.

Does this switch actually work in the described manner or perhaps I am
implementing it incorrectly ?
Is it possible to use the switch in the code outlined above and if so how?

Thanks for any help,

DD
 
J

Jon Skeet [C# MVP]

Dave52 said:
I know this topic has been discussed here before but I am having difficulty
achieving a totally silent , promptless install.

Using C# I would like to run an install without any user interaction at all.
I am using wceload to run a cab file.

The code is as follows:

ProcessInfo pi = new ProcessInfo();
if ( CreateProcess("\\Windows\\wceload.exe", TEMP_FILE, pi) )

This runs fine.
In addition I programmatically set the relevant Instl registry key to 0 to
disable the dialog box informing me that the application is already
installed. This works OK.

However I cannot disable the dialog boxes asking me do I want to replace the
already existing files with those newly extracted from the cab file.

I have been trying to use the /nui switch but have been unsuccessful in
getting it to work.

Have you been trying /noui or /nui? It's meant to be /noui, I believe.
Does this switch actually work in the described manner or perhaps I am
implementing it incorrectly ?
Is it possible to use the switch in the code outlined above and if so how?

It should be fine - where are you putting the switch?
 
G

Guest

John,

Thanks for your response.

I have been using /noui in my code the /nui bit was a mistype.

However as to its location I have tried the switch in various locations but
no joy eg:

if ( CreateProcess("\\Windows\\wceload.exe /noui", TEMP_FILE, pi) )

Do you know where it's supposed to go?


:
 
J

Jon Skeet [C# MVP]

Dave52 said:
Thanks for your response.

I have been using /noui in my code the /nui bit was a mistype.

However as to its location I have tried the switch in various locations but
no joy eg:

if ( CreateProcess("\\Windows\\wceload.exe /noui", TEMP_FILE, pi) )

Do you know where it's supposed to go?

It should go as part of the parameter rather than part of the filename.

I'll give it a go myself soon - I'm working on installation at the
moment, so it shouldn't be hard to check. If you haven't heard back
from me on it by about next Wednesday, prod me - I wouldn't be
surprised if I forgot over the weekend! (I can't easily test this at
home.)
 
G

Guest

Thanks John,
:
if ( CreateProcess("\\Windows\\wceload.exe","/noui " + TEMP_FILE, pi) )

works.

Keep your weekend and your mind free of my problems.
Shouldn't have had to bother you but on a dreary Friday afternoon I just
got bogged down.

Thanks,
DD

:
 
J

Jon Skeet [C# MVP]

Dave52 said:
Thanks John,
:
if ( CreateProcess("\\Windows\\wceload.exe","/noui " + TEMP_FILE, pi) )

works.

Keep your weekend and your mind free of my problems.

Cheers :)
Shouldn't have had to bother you but on a dreary Friday afternoon I just
got bogged down.

No problem at all - glad it's all sorted.
 
G

Guest

Hey,

It does not seem to work on SmartPhone 2003 too.? Does anybody know the
reason.

Regards,
Suhas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top