Closed akuropka closed 1 year ago
what is the third extention ? .SVG right ? You're on Windows 11 ?
Yes, it's Windows 11. I added the install log (Restore point was not created due to one already created recently).
I tried EXE, ISO, ZIP and PS1 (just took any files for testing).
ok because i don't see picture for iso i thought you tried on svg file. Could you please check below locations: HKCR\Windows.IsoFile\Shell HKCU.iso HKCR\CompressedFolder\Shell HKCR\WinRAR.ZIP\Shell HKCR.7z HKCU.ps1
Actually it was hkcu for .iso and. Ps1
I was wondering about that but there's nothing like HKCU\.
.
Screenshot:
Hkcu > software > classes
Ah... HKCU\Software\Classes\.iso
and HKCU\Software\Classes\.ps1
do not exist.
Regarding the iso part have you installed a tool for iso like CDBurnerXP ?
Yes, CDBurnerXP is installed.
Ok I thik that's why when you install some soft it may change the way to integrate context menu. I will proceed step by step, first with ISO. I will update the add_structure and remove_structure in few minutes. I will inform you
top, thx!
To be sure could you please check if there is something like as below ? HKCR\iso-file OR HKCR\CDBurnerXP
Could you please create a key like "hey hey" in HKCR\iso-file\shell ? not a string just a key Then do a right-click on an iso, you should see hey hey
Yes, it works.
cool i will update files
just updated sources.
You can test as below: Do a remove-structure.ps1 Download new zip Run add_structure.ps1
Thank you for your efforts.
Unfortunately it did not work. The logfile did just contain eleven empty lines but there was a console output this time:
[11.17.21 01:42:09] - INFO : Context menus for PS1 have been added [11.17.21 01:42:11] - INFO : Context menus for REG have been added [11.17.21 01:42:13] - INFO : Context menu for ISO has been added [11.17.21 01:42:13] - INFO : Checking content of HKCR.ISO [11.17.21 01:42:13] - INFO : The key HKCR.ISO exists [11.17.21 01:42:13] - INFO : Following subkeys found: (default) Content Type [11.17.21 01:42:13] - INFO : Following property found: iso-file [11.17.21 01:42:13] - INFO : Reg path to test: \iso-file [11.17.21 01:42:13] - INFO : The following reg path does not exist: \iso-file [11.17.21 01:42:13] - INFO : Following property found: CDBurnerXP/iso [11.17.21 01:42:13] - INFO : Reg path to test: \CDBurnerXP/iso [11.17.21 01:42:13] - INFO : The following reg path does not exist: \CDBurnerXP/iso [11.17.21 01:42:15] - INFO : Context menu for PPKG has been added [11.17.21 01:42:26] - INFO : Context menu for PS1 has been added [11.17.21 01:42:26] - INFO : Context menus for VBS have been added [11.17.21 01:42:26] - INFO : Context menus for EXE have been added [11.17.21 01:42:26] - INFO : Context menu for MSI has been added [11.17.21 01:42:26] - INFO : Context menu for ZIP has been added [11.17.21 01:42:30] - INFO : Context menu for 7Z has been added [11.17.21 01:42:33] - INFO : Context menu for MSIX has been added [11.17.21 01:42:33] - INFO : Context menu for ISO has been added [11.17.21 01:42:33] - INFO : Context menus for folder have been added
oops seems a bad copy paste in my scripts will change this
I just updated the add_structure.ps1 could you please try again ?
Works great for ISO... 👍😀
yeah, now it's not working for PS1, ZIP ? Have you tried msi too ?
I was just going through the known extensions:
Could you please check below locations ? HKCU\software\classes.ps1 HKCU\software\classes\AppXxf01pj590w7z9mxmyv3nx0a9ewj3e51g HKCR\FirefoxHTML HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.ps1\UserChoice HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.html\UserChoice HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.zip
HKCU\software\classes\.ps1
❌
HKCU\software\classes\AppXxf01pj590w7z9mxmyv3nx0a9ewj3e51g
❌, while some other AppX are there
HKCR\FirefoxHTML
❌, but: HKCR\FirefoxHTML-BA1BED273568656F
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ps1\UserChoice
✅
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice
✅
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.zip
✅
For those one below could you please send me a txt file as before ? HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.ps1\UserChoice HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.html\UserChoice HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.zip HKCR.ps1
Sorry... of course: FileExts.txt
HKCR\.ps1
does not exist
Thanks Could you please check below location: HKCU\software\classes\Applications\powershell_ise.exe
Ok, I think I found why for PS1 and HTML. I will update files soon
HKCU\software\classes\Applications\powershell_ise.exe
: powershell_ise.txt
Just updated files. Could you please test again for PS1 and HTML ?
Looks both great! 👍😀
cool :-) Now regarding ZIP, do you have below locations ? HKCU\software\classes\7-Zip.zip HKCR\7-Zip.zip
Yes... 7-Zip.zip.txt
ok will work on it. thanks
Great, thank you again.
and if you create a new key like toto in HKCR\7-Zip.zip\shell do you see it when you do a right-click on a zip file ?
Yes!
Btw your script is installing 7-Zip (for own purposes) as well. Maybe it makes sense to check if 7z is already installed and skip copying and using the own one in this case.
Actually it doesn't install 7zip just copy required file for extracting iso but nothing is installed on the device
Yeah, "installing" by copying to ProgramData and using ist. Just noticed...
Just updated sources files. Could you please try again for zip ?
It works... great! 😀👍
Btw I noticed if you extract an iso in the sandbox there's no progress bar. Depending on the size of the iso or the infrastructure used it may take a while until everything is ready.
Another idea coming into my mind was not to extract an iso but to mount it. This should be sufficient since there's no persistent storage anyway.
You're right i will add a msgbox when iso is flully extracted. Yep, actually the second case is in my plan, thanks for the suggestion. Thanks for your feedback :-)
Btw do you have any ☕/🍺 box?
You mean something like pay me a coffee on my blog ?
Exactly, but didn’t find anything.
Maybe something like Custom Context Menu would make things easier... (however, it's for Windows 11 only)
Hey, i have the same (or a similar) issue. Neither HKCU\Software\Classes.ps1 nor HKCU\Software\Classes.iso are there and the context menu option for powershell is missing. I havent tested any other except the app bundle template and exe files, which indeed have the context menu option. As a side note, i am running windows 10, not windows 11 and the log was overall positive, except the restore point, which couldnt be created (though this isnt an issue)
Edit: Intunewin has the option aswell
.cmd context menu option is missing aswell, .svg works
Windows 22000.346
I downloaded the whole set as ZIP (Run-in-Sandbox-master) and extracted it. Afterwards I ran the .\Add_Structure.ps1 which completed without error (running it again without prior remove produces ResourceExists-errors).
The context menu for EXE is there and seems to work. But others are not available... how to track the issue down?
Thank you! (-:
RunInSandbox_Install.log