Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to make my c++ win32 .Net frameworks installer(include 3 exe files) silent,
(paltform: Windows)

I tried sfxmaker software & ussf.exe, but i get unknown installer error...

command line arguments /S and /SD also not working for me...

part of code I use :

C++
if( !CreateProcess( NULL,   // No module name (use command line)
                  ".\\InstallationFiles\\dotnetfx 35 SP1 Full.exe/S",
                  NULL,           // Process handle not inheritable
                  NULL,           // Thread handle not inheritable
                  FALSE,          // Set handle inheritance to FALSE
                  0,              // No creation flags
                  NULL,           // Use parent's environment block
                  NULL,           // Use parent's starting directory
                  &si,            // Pointer to STARTUPINFO structure
                  &pi )           // Pointer to PROCESS_INFORMATION structure
                  )




Please help,

Thanks in advance
Posted
Updated 4-Dec-12 23:06pm
v5
Comments
Richard MacCutchan 4-Dec-12 11:30am    
Switch off the sound.

Now, if you want a sensible answer try asking a more informative question.
Don_3 4-Dec-12 11:41am    
@richard, haha sounds like you were waiting to say some joke,ok i thought silent installer was known to any one who deals with installers.

i am having a c++ win32 installer which installs 3 exe files (.net frameworks), but i dont want my naive users to interact with the installer, by double clicking the installer alone should atlast launch the required application , hope its clear now.
Richard MacCutchan 4-Dec-12 12:00pm    
Unless your installer offers messages and choices to the user, I don't see what the problem is.
Don_3 4-Dec-12 14:35pm    
i have removed all those message boxes, i am talking about the next button, i agree radio button..., i found that putting "x.exe /S or /SD" in commandline works, but not working for me,even I tried Sfxmaker, I get unknown Installer type in that,
any one can help...
Richard MacCutchan 5-Dec-12 3:14am    
You need to provide a lot more detail (please edit your original question) for anyone to help you. I doubt that anyone can begin to guess what x.exe refers to.

I got it, Thanks to all,
My solution is:

if( !CreateProcess ( NULL, // No module name (use command line)
".\\InstallationFiles\\dotnetfx35SP1Full.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT",... // I mentioned only 2 arguments.

Check this too:
http://msdn.microsoft.com/en-us/library/ee390831(v=vs.100).aspx[^]


NOTE: but friends you will not see any improvement on the desk, check task manager to view it.
 
Share this answer
 
v2
This is really not practical (or maybe even doable) in today's systems... main reason is that most systems run most applications under lower permission levels even if the user is an administrator. This of course is for safety reasons, but the implication of this is that anything that has to do changes to the system (either registry or system folders) has to ask for permission from the user explicitly. As you can see, it becomes almost impossible to make an installer "silent" under those conditions.

This applies to both modern Windows and Linux systems.
 
Share this answer
 
Comments
Don_3 4-Dec-12 14:35pm    
i have removed all those message boxes, i am talking about the next button, i agree radio button..., i found that putting "x.exe /S or /SD" in commandline works, but not working for me,even I tried Sfxmaker, I get unknown Installer type in that,
any one can help...
Albert Holguin 4-Dec-12 15:33pm    
Is this an application that you developed or a third party application? ...I don't know what buttons you are referring to.
Sergey Alexandrovich Kryukov 4-Dec-12 14:52pm    
Good point, but this is not the excuse for not having silent installation. The whole installation/script application can be executed under the account with sufficient permissions or with elevated permission (Windows 7): "Run as Administrator" or sudo (most typical for Linux). I only question some social/administrative aspect, when it comes to development tools, as it should be up to each developer who can have own installation, and only could get assistance with it. All developers can use somewhat different tools and they should be given this opportunity if they want.
--SA
Nelek 4-Dec-12 17:06pm    
You should tell that to our IT-department. They have installed an intern software in all Laptops of the firm without saying anything or having to click anything as user on my laptop.
Consequence: Energy management changed without notice, my SSD was freezing every 20 minutes I didn't touch the keyboard, when windows wanted to "shut down hard drive". One week working at customers' facility, without being able to deactivate it.
Sergey Alexandrovich Kryukov 5-Dec-12 8:15am    
IT sometimes play inappropriate roles, usually having no qualification in development. This is a real organizational problem.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900