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/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
Post a Comment