c# - How I can call the installer.ini arguments in a silent installer? -


i use code install in silent mode program :

 private void install_click(object sender, eventargs e)         {              string path = appdomain.currentdomain.basedirectory.tostring();              string configfilename = path + "config.ini";             string installerfilename = path + "installer.ini";              string configtext = file.readalltext(configfilename);             string installertext = file.readalltext(installerfilename); }  process process = new process();             process.startinfo.filename = @"d:\matlab\nsis\r2008a\win64\setup.exe";             process.startinfo.arguments = "/quiet";             process.startinfo.windowstyle = processwindowstyle.hidden;             process.start();             process.waitforexit(); } 

but code made setup.exe run, doesn't use installer.ini have license number, outlog number ...how can this, use arguments of installer.ini silent installer of matlab program ?

also tried :

process process = new process();                     process.startinfo.filename = @"d:\matlab\nsis\r2008a\win64\setup.exe";             process.startinfo.arguments = @"c:\temp\installer.ini";              process.startinfo.arguments = "/quiet";             process.startinfo.windowstyle = processwindowstyle.hidden;             process.start();             process.waitforexit(); 

as far understood

http://www.mathworks.com/matlabcentral/answers/106140-how-do-i-utilize-silent-activation-using-activate-ini

http://www.mathworks.com/help/install/ug/install-noninteractively-silent-installation.html

the installer wants -if key , installer.ini file, c# syntax be

   // put idisposable using    using (process process = new process()) {      // installer       process.startinfo.filename = @"d:\matlab\nsis\r2008a\win64\setup.exe";      // suggested (see links above)  arguments      process.startinfo.arguments = @"-if c:\temp\installer.ini";       process.startinfo.windowstyle = processwindowstyle.hidden;      process.start();      process.waitforexit();    } 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -