mirror of
				https://github.com/pbatard/rufus.git
				synced 2024-08-14 23:57:05 +00:00 
			
		
		
		
	[appstore] try without digital signature and digital signature validation
* Since the application doesn't launch properly... :( * Also add some instrumentation for the one code path that can explain the messages we are seeing.
This commit is contained in:
		
							parent
							
								
									47c8d09be3
								
							
						
					
					
						commit
						0d604fbcf1
					
				
					 4 changed files with 18 additions and 16 deletions
				
			
		|  | @ -10,7 +10,7 @@ | ||||||
|   <Identity |   <Identity | ||||||
|     Name="19453.net.Rufus" |     Name="19453.net.Rufus" | ||||||
|     Publisher="CN=7AC86D13-3E5A-491A-ADD5-80095C212740" |     Publisher="CN=7AC86D13-3E5A-491A-ADD5-80095C212740" | ||||||
|     Version="3.13.1731.0" /> |     Version="3.13.1732.0" /> | ||||||
| 
 | 
 | ||||||
|   <Properties> |   <Properties> | ||||||
|     <DisplayName>Rufus</DisplayName> |     <DisplayName>Rufus</DisplayName> | ||||||
|  |  | ||||||
|  | @ -38,7 +38,7 @@ | ||||||
|     </ProjectConfiguration> |     </ProjectConfiguration> | ||||||
|   </ItemGroup> |   </ItemGroup> | ||||||
|   <PropertyGroup Label="Configuration"> |   <PropertyGroup Label="Configuration"> | ||||||
|     <PreBuildEvent>"C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\signtool" sign /v /sha1 9ce9a71ccab3b38a74781b975f1c228222cf7d3b /fd SHA256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp $(OutDir)rufus.exe</PreBuildEvent> |     <PreBuildEvent>echo "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\signtool" sign /v /sha1 9ce9a71ccab3b38a74781b975f1c228222cf7d3b /fd SHA256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp rufus.exe</PreBuildEvent> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath> |     <WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath> | ||||||
|  |  | ||||||
							
								
								
									
										20
									
								
								src/rufus.c
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								src/rufus.c
									
										
									
									
									
								
							|  | @ -3087,7 +3087,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine | ||||||
| 	int wait_for_mutex = 0; | 	int wait_for_mutex = 0; | ||||||
| 	FILE* fd; | 	FILE* fd; | ||||||
| 	BOOL attached_console = FALSE, external_loc_file = FALSE, lgp_set = FALSE, automount = TRUE; | 	BOOL attached_console = FALSE, external_loc_file = FALSE, lgp_set = FALSE, automount = TRUE; | ||||||
| 	BOOL disable_hogger = FALSE, previous_enable_HDDs = FALSE, vc = IsRegistryNode(REGKEY_HKCU, vs_reg); | 	BOOL disable_hogger = FALSE, previous_enable_HDDs = FALSE; // , vc = IsRegistryNode(REGKEY_HKCU, vs_reg);
 | ||||||
| 	BOOL alt_pressed = FALSE, alt_command = FALSE; | 	BOOL alt_pressed = FALSE, alt_command = FALSE; | ||||||
| 	BYTE *loc_data; | 	BYTE *loc_data; | ||||||
| 	DWORD loc_size, u, size = sizeof(u); | 	DWORD loc_size, u, size = sizeof(u); | ||||||
|  | @ -3230,6 +3230,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine | ||||||
| 				case '?': | 				case '?': | ||||||
| 				case 'h': | 				case 'h': | ||||||
| 				default: | 				default: | ||||||
|  | uprintf("Rufus usage selected"); | ||||||
| 					PrintUsage(argv[0]); | 					PrintUsage(argv[0]); | ||||||
| 					goto out; | 					goto out; | ||||||
| 				} | 				} | ||||||
|  | @ -3238,7 +3239,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine | ||||||
| 	} else { | 	} else { | ||||||
| 		uprintf("Could not access UTF-16 args"); | 		uprintf("Could not access UTF-16 args"); | ||||||
| 	} | 	} | ||||||
| 
 | uprintf("Post args processing"); | ||||||
| 	// Retrieve various app & system directories
 | 	// Retrieve various app & system directories
 | ||||||
| 	if (GetCurrentDirectoryU(sizeof(app_dir), app_dir) == 0) { | 	if (GetCurrentDirectoryU(sizeof(app_dir), app_dir) == 0) { | ||||||
| 		uprintf("Could not get current directory: %s", WindowsErrorString()); | 		uprintf("Could not get current directory: %s", WindowsErrorString()); | ||||||
|  | @ -3252,6 +3253,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine | ||||||
| 		uprintf("Could not get temp directory: %s", WindowsErrorString()); | 		uprintf("Could not get temp directory: %s", WindowsErrorString()); | ||||||
| 		static_strcpy(temp_dir, ".\\"); | 		static_strcpy(temp_dir, ".\\"); | ||||||
| 	} | 	} | ||||||
|  | uprintf("Post dirs processing"); | ||||||
| 	// Construct Sysnative ourselves as there is no GetSysnativeDirectory() call
 | 	// Construct Sysnative ourselves as there is no GetSysnativeDirectory() call
 | ||||||
| 	// By default (64bit app running on 64 bit OS or 32 bit app running on 32 bit OS)
 | 	// By default (64bit app running on 64 bit OS or 32 bit app running on 32 bit OS)
 | ||||||
| 	// Sysnative and System32 are the same
 | 	// Sysnative and System32 are the same
 | ||||||
|  | @ -3270,7 +3272,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine | ||||||
| 	// Look for a .ini file in the current app directory
 | 	// Look for a .ini file in the current app directory
 | ||||||
| 	static_sprintf(ini_path, "%s\\rufus.ini", app_dir); | 	static_sprintf(ini_path, "%s\\rufus.ini", app_dir); | ||||||
| 	fd = fopenU(ini_path, ini_flags);	// Will create the file if portable mode is requested
 | 	fd = fopenU(ini_path, ini_flags);	// Will create the file if portable mode is requested
 | ||||||
| 	vc |= (safe_strcmp(GetSignatureName(NULL, NULL), cert_name[0]) == 0); | //	vc |= (safe_strcmp(GetSignatureName(NULL, NULL), cert_name[0]) == 0);
 | ||||||
| 	if (fd != NULL) { | 	if (fd != NULL) { | ||||||
| 		ini_file = ini_path; | 		ini_file = ini_path; | ||||||
| 		fclose(fd); | 		fclose(fd); | ||||||
|  | @ -3429,12 +3431,12 @@ relaunch: | ||||||
| 	if (get_loc_data_file(loc_file, selected_locale)) | 	if (get_loc_data_file(loc_file, selected_locale)) | ||||||
| 		WriteSettingStr(SETTING_LOCALE, selected_locale->txt[0]); | 		WriteSettingStr(SETTING_LOCALE, selected_locale->txt[0]); | ||||||
| 
 | 
 | ||||||
| 	if (!vc) { | 	//if (!vc) {
 | ||||||
| 		if (MessageBoxExU(NULL, lmprintf(MSG_296), lmprintf(MSG_295), | 	//	if (MessageBoxExU(NULL, lmprintf(MSG_296), lmprintf(MSG_295),
 | ||||||
| 			MB_YESNO | MB_ICONWARNING | MB_IS_RTL | MB_SYSTEMMODAL, selected_langid) != IDYES) | 	//		MB_YESNO | MB_ICONWARNING | MB_IS_RTL | MB_SYSTEMMODAL, selected_langid) != IDYES)
 | ||||||
| 			goto out; | 	//		goto out;
 | ||||||
| 		vc = TRUE; | 	//	vc = TRUE;
 | ||||||
| 	} | 	//}
 | ||||||
| 
 | 
 | ||||||
| 	/*
 | 	/*
 | ||||||
| 	 * Create the main Window | 	 * Create the main Window | ||||||
|  |  | ||||||
							
								
								
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							|  | @ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL | ||||||
| IDD_DIALOG DIALOGEX 12, 12, 232, 326 | IDD_DIALOG DIALOGEX 12, 12, 232, 326 | ||||||
| STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | ||||||
| EXSTYLE WS_EX_ACCEPTFILES | EXSTYLE WS_EX_ACCEPTFILES | ||||||
| CAPTION "Rufus 3.14.1731" | CAPTION "Rufus 3.14.1732" | ||||||
| FONT 9, "Segoe UI Symbol", 400, 0, 0x0 | FONT 9, "Segoe UI Symbol", 400, 0, 0x0 | ||||||
| BEGIN | BEGIN | ||||||
|     LTEXT           "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP |     LTEXT           "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP | ||||||
|  | @ -395,8 +395,8 @@ END | ||||||
| // | // | ||||||
| 
 | 
 | ||||||
| VS_VERSION_INFO VERSIONINFO | VS_VERSION_INFO VERSIONINFO | ||||||
|  FILEVERSION 3,14,1731,0 |  FILEVERSION 3,14,1732,0 | ||||||
|  PRODUCTVERSION 3,14,1731,0 |  PRODUCTVERSION 3,14,1732,0 | ||||||
|  FILEFLAGSMASK 0x3fL |  FILEFLAGSMASK 0x3fL | ||||||
| #ifdef _DEBUG | #ifdef _DEBUG | ||||||
|  FILEFLAGS 0x1L |  FILEFLAGS 0x1L | ||||||
|  | @ -414,13 +414,13 @@ BEGIN | ||||||
|             VALUE "Comments", "https://rufus.ie" |             VALUE "Comments", "https://rufus.ie" | ||||||
|             VALUE "CompanyName", "Akeo Consulting" |             VALUE "CompanyName", "Akeo Consulting" | ||||||
|             VALUE "FileDescription", "Rufus" |             VALUE "FileDescription", "Rufus" | ||||||
|             VALUE "FileVersion", "3.14.1731" |             VALUE "FileVersion", "3.14.1732" | ||||||
|             VALUE "InternalName", "Rufus" |             VALUE "InternalName", "Rufus" | ||||||
|             VALUE "LegalCopyright", "© 2011-2021 Pete Batard (GPL v3)" |             VALUE "LegalCopyright", "© 2011-2021 Pete Batard (GPL v3)" | ||||||
|             VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html" |             VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html" | ||||||
|             VALUE "OriginalFilename", "rufus-3.13.exe" |             VALUE "OriginalFilename", "rufus-3.13.exe" | ||||||
|             VALUE "ProductName", "Rufus" |             VALUE "ProductName", "Rufus" | ||||||
|             VALUE "ProductVersion", "3.14.1731" |             VALUE "ProductVersion", "3.14.1732" | ||||||
|         END |         END | ||||||
|     END |     END | ||||||
|     BLOCK "VarFileInfo" |     BLOCK "VarFileInfo" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue