add assoc for file ahndler then thiw will result in handling the file
This commit is contained in:
parent
3b5dd897ad
commit
377ba238e5
@ -129,6 +129,7 @@ FOR %%j IN (%Extn%) DO (
|
||||
REG ADD %SC%\Imagine.%%A /VE /D "%%A Image" /F
|
||||
REG ADD %SC%\Imagine.%%A\DefaultIcon /VE /D "$InstallDir$\%Prog%.dll,%%B" /F
|
||||
REG ADD %SC%\Imagine.%%A\shell\open\command /VE /D "\"$InstallDir$\%Prog%.exe\" \"%%1\"" /F
|
||||
assoc .%%A=Imagine.%%A
|
||||
copy "$LogDir$\defaultassociations.xml" "$LogDir$\defaultassociations.xml.old"
|
||||
xml ed -d /DefaultAssociations/Association[@Identifier='.%%A'] "$LogDir$\defaultassociations.xml.old"> "$LogDir$\defaultassociations.xml"
|
||||
copy "$LogDir$\defaultassociations.xml" "$LogDir$\defaultassociations.xml.old"
|
||||
@ -138,7 +139,7 @@ FOR %%j IN (%Extn%) DO (
|
||||
|
||||
rem Set Default Associations for Windows 8
|
||||
move "$LogDir$\defaultassociations.xml" "%System%"
|
||||
REG ADD HKLM\Software\Policies\Microsoft\Windows\System /V DefaultAssociationsConfiguration /D "%systemdrive%\windows\system32\defaultassociations.xml" /F
|
||||
REG ADD HKLM\Software\Policies\Microsoft\Windows\System /V DefaultAssociationsConfiguration /D "%System%\defaultassociations.xml" /F
|
||||
|
||||
[Files_install_config]
|
||||
copy "%ScriptPath%\Imagine.ini" "%UserProfileDir%\Anwendungsdaten\Imagine"
|
||||
|
Loading…
Reference in New Issue
Block a user