@@ -122,7 +122,7 @@ def install_for_all_users(self):
122122 # 打开文件选择对话框选择文件
123123 all_users_application_package_file_path = filedialog .askopenfilename (
124124 filetypes = [("MSIX/MSIXBundle" , "*.msix;*.msixbundle" ),
125- ("Appx/AppxBundle " , "*.appx;*.appxbundle" ),
125+ ("Appx/AppXBundle " , "*.appx;*.appxbundle" ),
126126 ("*" , "*" )])
127127
128128 if not all_users_application_package_file_path :
@@ -191,7 +191,7 @@ def install_for_current_user(self):
191191 # 打开文件选择对话框选择文件
192192 current_user_application_package_file_path = filedialog .askopenfilename (
193193 filetypes = [("MSIX/MSIXBundle" , "*.msix;*.msixbundle" ),
194- ("Appx/AppxBundle " , "*.appx;*.appxbundle" ),
194+ ("Appx/AppXBundle " , "*.appx;*.appxbundle" ),
195195 ("*" , "*" )])
196196
197197 if not current_user_application_package_file_path :
@@ -207,7 +207,7 @@ def install_for_current_user(self):
207207 if response_for_current_user_dependency : # 选择依赖包
208208 current_user_dependency_package_paths = filedialog .askopenfilenames (
209209 filetypes = [("MSIX/MSIXBundle" , "*.msix;*.msixbundle" ),
210- ("Appx/AppxBundle " , "*.appx;*.appxbundle" ),
210+ ("Appx/AppXBundle " , "*.appx;*.appxbundle" ),
211211 ("*" , "*" )])
212212 if not current_user_dependency_package_paths :
213213 return self .translator .translate ("no_files_selected" )
@@ -216,7 +216,7 @@ def install_for_current_user(self):
216216
217217 try :
218218 # 构建 Add-AppxPackage 命令
219- command = ['powershell.exe' , '-NoProfile' , '-Command'
219+ command = ['powershell.exe' , '-NoProfile' , '-Command' ,
220220 f'Add-AppxPackage -Path "{ current_user_application_package_file_path } "' ]
221221 if current_user_dependency_package_paths : # 使用依赖包,若不使用则跳过
222222 dependency_paths = "," .join ([f'"{ additional_dependency_paths } "' for additional_dependency_paths in current_user_dependency_package_paths ])
@@ -275,7 +275,7 @@ def update_from_application_package(self):
275275 # 打开文件选择对话框选择文件
276276 update_application_package_file_path = filedialog .askopenfilename (
277277 filetypes = [("MSIX/MSIXBundle" , "*.msix;*.msixbundle" ),
278- ("Appx/AppxBundle " , "*.appx;*.appxbundle" ),
278+ ("Appx/AppXBundle " , "*.appx;*.appxbundle" ),
279279 ("*" , "*" )])
280280
281281 if not update_application_package_file_path :
@@ -291,7 +291,7 @@ def update_from_application_package(self):
291291 if response_for_update_dependency : # 选择依赖包
292292 update_dependency_package_paths = filedialog .askopenfilenames (
293293 filetypes = [("MSIX/MSIXBundle" , "*.msix;*.msixbundle" ),
294- ("Appx/AppxBundle " , "*.appx;*.appxbundle" ),
294+ ("Appx/AppXBundle " , "*.appx;*.appxbundle" ),
295295 ("*" , "*" )])
296296 if not update_dependency_package_paths :
297297 return self .translator .translate ("no_files_selected" )
@@ -332,7 +332,7 @@ def install_from_appxmanifest(self):
332332 # 打开文件选择对话框选择文件
333333 pc_manager_package_file_path_str = filedialog .askopenfilename (
334334 filetypes = [("MSIX/MSIXBundle" , "*.msix;*.msixbundle" ),
335- ("Appx/AppxBundle " , "*.appx;*.appxbundle" ),
335+ ("Appx/AppXBundle " , "*.appx;*.appxbundle" ),
336336 ("*" , "*" )])
337337
338338 if not pc_manager_package_file_path_str :
@@ -442,7 +442,7 @@ def install_from_appxmanifest(self):
442442 if response_for_dependency : # 选择依赖包
443443 dependency_package_paths = filedialog .askopenfilenames (filetypes = [
444444 ("MSIX/MSIXBundle" , "*.msix;*.msixbundle" ),
445- ("Appx/AppxBundle " , "*.appx;*.appxbundle" ),
445+ ("Appx/AppXBundle " , "*.appx;*.appxbundle" ),
446446 ("*" , "*" )])
447447 if not dependency_package_paths : # 如果没有选择文件
448448 # 清理 MSPCManagerHelper 临时目录下的文件
0 commit comments