@@ -231,30 +231,6 @@ int wmain(int argc, wchar_t **argv)
231
231
exit (1 );
232
232
}
233
233
234
- /* OBS!!! If the format of the init file is changed, do not forget
235
- to update release_handler:write_ini_file(...) */
236
- ini_file = create_init_file ();
237
- ini_section = create_init_section ("erlang" );
238
- add_init_section (ini_file ,ini_section );
239
- WideCharToMultiByte (CP_UTF8 ,0 ,erts_dir ,-1 ,tmp_utf8 ,MAX_PATH * 4 ,NULL ,NULL );
240
- add_init_entry (ini_section ,"Bindir" ,tmp_utf8 );
241
- add_init_entry (ini_section ,"Progname" ,"erl" );
242
- WideCharToMultiByte (CP_UTF8 ,0 ,root ,-1 ,tmp_utf8 ,MAX_PATH * 4 ,NULL ,NULL );
243
- add_init_entry (ini_section ,"Rootdir" ,tmp_utf8 );
244
- swprintf (fromname ,MAX_PATH ,L"%s\\erl.ini" ,erts_dir );
245
- swprintf (toname ,MAX_PATH ,L"%s\\erl.ini" ,bin_dir );
246
- if (store_init_file (ini_file ,fromname ) != 0 ) {
247
- fprintf (stderr ,"Could not create file %S\n" ,
248
- fromname );
249
- fprintf (stderr ,"Cannot continue installation, bailing out.\n" );
250
- exit (1 );
251
- }
252
- if (!CopyFileW (fromname ,toname ,FALSE)) {
253
- fprintf (stderr ,"Could not copy file %S to %S\n" ,
254
- fromname ,toname );
255
- fprintf (stderr ,"Cannot continue installation, bailing out.\n" );
256
- exit (1 );
257
- }
258
234
if (!silent ) {
259
235
printf ("Erlang %s installed successfully\n" , erts_version );
260
236
}
0 commit comments