Primo (PRogram Installation MOnitor, a Regshot fork)

Submit portable freeware that you find here. It helps if you include information like description, extraction instruction, Unicode support, whether it writes to the registry, and so on.
Message
Author
rhinbc
Posts: 8
Joined: Tue Mar 20, 2018 10:28 am

Re: Primo (PRogram Installation MOnitor, a Regshot fork)

#31 Post by rhinbc » Sat Jul 07, 2018 3:34 pm

I tried to lock a file with CHKUNIN, and it didn't...
What I did...
1 - Run regshot Shot1.
2 - Add a folder and file to C:
3 - Run regshot Shot2/Compare.
4 - Run CHKUNIN to see changes and leave it running.
5 - Rename the added file.
6 - delete the added file.
7 - delete the added folder.
I did not get any file is locked messages.
How is this happening to you?

User avatar
Midas
Posts: 4462
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Primo (PRogram Installation MOnitor, a Regshot fork)

#32 Post by Midas » Sun Jul 08, 2018 6:19 am

Don't have a ready answer so I'll try to document the issue better when it happens next... :?

rhinbc
Posts: 8
Joined: Tue Mar 20, 2018 10:28 am

Re: Primo (PRogram Installation MOnitor, a Regshot fork)

#33 Post by rhinbc » Mon Jul 16, 2018 2:54 pm

I finally did it... I put the code for my Program Installation Monitor on Sourceforge.
So if any of you want to make it better (like for a 4k monitor) go for it.
I would appreciate it if you let me know if you modify it at bitron@islandnet.com.
You can (hopefully) download it at...
https://sourceforge.net/projects/progra ... p/download

User avatar
Midas
Posts: 4462
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Primo (PRogram Installation MOnitor, a Regshot fork)

#34 Post by Midas » Tue Aug 28, 2018 7:18 am

Gotcha! :)

While testing Therapods HWF (viewtopic.php?t=24309), I was informed by ChkUnin it created a settings folder at '%ProgramData%\Theropods' ('%ProgramData%' is Windows 7 equivalent of the former 'C:\Users\All Users\').

After closing HWF, I tried to delete '%ProgramData%\Theropods' and failed every time. Until I closed ChkUnin, that is, which Unlocker (https://www.portablefreeware.com/?id=1658) confirmed was keeping a lock on the folder.

There, mystery solved... 8)

rhinbc
Posts: 8
Joined: Tue Mar 20, 2018 10:28 am

Re: Primo (PRogram Installation MOnitor, a Regshot fork)

#35 Post by rhinbc » Tue Aug 28, 2018 8:53 am

Hi Midas...
I'm glad you figured it out... and I have no idea why Chkunin was locking it.
Was it Chkunin, or HWF that created the locked file?
Chkunin should only create the.BAT and .REG files...

User avatar
Midas
Posts: 4462
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Primo (PRogram Installation MOnitor, a Regshot fork)

#36 Post by Midas » Tue Aug 28, 2018 2:56 pm

That folder, with a sub-folder containing a 'settings.conf' file was created by HWF. That's what makes this situation so puzzling and hard to pinpoint. I guess ChkUnin is locking it when it finds it's one of the filesystem changes it should keep tabs on -- there were in fact 4 simultaneous locks, still according to Unlocker...

Snooper
Posts: 1
Joined: Wed Jan 09, 2019 2:00 pm

Re: Primo (PRogram Installation MOnitor, a Regshot fork)

#37 Post by Snooper » Thu Jan 10, 2019 8:23 am

rhinbc wrote:
Tue Aug 28, 2018 8:53 am
Spoiler!   
Hi Midas...
I'm glad you figured it out... and I have no idea why Chkunin was locking it.
Was it Chkunin, or HWF that created the locked file?
Chkunin should only create the.BAT and .REG files...
Midas wrote:
Tue Aug 28, 2018 2:56 pm
Spoiler!   
That folder, with a sub-folder containing a 'settings.conf' file was created by HWF. That's what makes this situation so puzzling and hard to pinpoint. I guess ChkUnin is locking it when it finds it's one of the filesystem changes it should keep tabs on -- there were in fact 4 simultaneous locks, still according to Unlocker...
BUGS in ChkUnin & PRIMO! Please Help Me!

@rhinbc I've sent an email with almost the same content. So, decide yourself where to reply.

Hi Randy & community!

Before I start. Are you still working on PRIMO project? Or have you, unfortunately, abandoned this mega required tool?

First of all, I want to say you the huge THANK YOU for your effort put in PRIMO. That's a real deal against nasty software leftovers. TBH, your RegShot fork is the best compared to others (e.g. RegShot Unicode 2.0 (from one Russian man who have abandoned it), RegUndo (not a real fork but still...), etc.).

Now, sadly, I should notify you about huge bugs (drawbacks?) that I found in ChkUnin 7.1.0 & PRIMO 3.0.1 (x64 ANSI):

1. ChkUnin can't generate batch command(s) to delete existing files that are listed under [Files added:] section in the valid output TXT (EN) file/log and are NOT located in the newly-created folders that ChkUnin will mark with a RMDIR /S %_nop% delete command in a .bat file.
ChkUnin will successfully generate commands for folders removal but won't for files. It will leave set _nop= and _ok= without any path to file.

Generated batch script looks like that:
Spoiler!   
echo off
color F0
REM The following files still exist...
REM The following DEL commands are in file C:\PRIMO\LOGS\123.bat
REM The files will be DELETED if you execute file C:\PRIMO\LOGS\123.bat
cls
echo.
set _ok=
set /p _ok=Do you really want to DELETE these files? (Y/N) :
if /I NOT "%_ok%" == "Y" EXIT
set _nop=
set _ok=
set /p _ok=Remove prompt to delete folders? (Y/N) :
if /I "%_ok%" == "Y" set _nop=/Q
RMDIR /S %_nop% "C:\Program Files\COMODO"
RMDIR /S %_nop% "C:\Program Files (x86)\Comodo"
...
pause
As you can see, there are no files paths in batch script. Files that were created between two PRIMO 3.0.1 (RegShot) snapshots are still located in "C:\Test Folder\" and aren't in any of COMODO directories.

Note: "C:\Test Folder\" wasn't created after the second snapshot. You can see this in the PRIMO output file (I've removed millions of noise data for better understanding):
Spoiler!   
===================START===================
Randys Regshot 3.0.1 x64 ANSI (Based on Regshot 1.9.1)
Comments: 123
Datetime: 2019-01-02 20:30:51, 2019-01-02 20:35:04
Computer: WORKSTATION-#51-NSA.Sub2
Username: Agent Brian W. Foster
--------------------------------
Folders added: 311
----------------------------------
C:\Program Files\COMODO
C:\Program Files\COMODO\COMODO Internet Security
...
C:\Program Files (x86)\Comodo
C:\Program Files (x86)\Comodo\COMODO Secure Shopping
...
C:\ProgramData\COMODO
----------------------------------
Files added: 4936
----------------------------------
C:\Test Folder\New Text Document.txt
2019-01-02 20:32:56, 23
C:\Test Folder\Test File.rtf
2019-01-02 20:32:59, 56
===================END===================
2. Generally, there are no major issues with folders or registry keys/values processing. ChkUnin & PRIMO shine here, almost. Maybe not a bug but still dangerous...
ChkUnin with PRIMO along can't handle keys/values, folders/files renaming. PRIMO treats renaming as deleted/created and ChkUnin use PRIMO's output data to generate registry and file system clean up files (.reg, _mods.reg, .bat) that can brick the OS by deleting renamed folder instead of renaming it back.
For example: if any program will rename any key/value, folder or file that is necessary for the OS (I mean, it must at least exist, "no" matter what the name is), PRIMO will say that it/they was/were deleted & created like a new entries with a new name. Then, ChkUnin will generate "OS dealthful" .reg & .bat files. Well, that will be a mess, TBH.
I assume it's not a bug, it is more like a not filled gap in functionality that can cause a lot of issues.

3. As you may already know, ChkUnin also blocks files/folders until closed. I did a lot of investigations and can say that it does something weird with attributes/permissions, do not know why and how.

4. No Unicode support. Not a bug, more a missed feature. I saw a lot of feedback on RegShot SourceForge's official page and other forums from people who complain about RegShot 1.9.1 x64 Unicode doesn't work on Windows 10, but it works for me on Win 10 Enterprise LTSC 1809 (x64). I tried to take snapshots with the original RS 1.9.1, with different settings (reg, dirs, both, etc.) in different OS modes (safe/normal) and it works. With "Not Responding" message for 1-2 min but works! :)
So, would you consider rebuilding PRIMO/ChkUnin to fully support Unicode?

5. Minor bug. PRIMO (RegShot) wrongly increases information about [Total changed size:] in an output file every single time you click "Output". To know the exact size changes user should use Calc_size.vbs like a workaround.

That's all for bugs/drawbacks. But I also want to give you the recommendations to improve PRIMO. Here are my findings:
1. Reorganize the UI layout to be more compact and clear. Divide check boxes on different groups. I can make a graphical prototype later.
2. Add an option to scan only wanted registry hive keys, like it's already implemented with directories scan but with check boxes.
3. Add an option to NOT quit from RegShot after pressing any key to interrupt current scanning process. Just to pause/stop, not quit, because it's possible to lose 1st not saved snapshot while taking and breaking the 2nd one.
4. Will be soon...

Well. Are there any workarounds/future fixing plans to solve issues listed above?

Nevertheless, thank you, Randy, for a great utility! Take care and keep up the great project!

Regards,
Brian Foster


P.S.
I've read whole PRIMO documentation and have checked almost every single file (along with code) from Primo.zip (downloaded from SourceForge.net). Haven't found any code gaps where it is possible to prevent ChkUnin from missing files deletion. Maybe I've missed something, let me know.

I use PRIMO on Win 10 Enterprise LTSC 1809 (x64).
My main Regshot.INI settings are:
Spoiler!   
[Setup]
Flag=3
Flag2=0
Flag3=0
Flag4=0
Flag5=1
Flag6=0
Flag7=0
ExtDir=C:\;
OutDir=C:\PRIMO\LOGS
UseLongRegHead=1
Maxdata=0
Language=English
Suffix=.txt
[SkipRegKey]
[SkipDir]
0=$RECYCLE.BIN
P.S.2
Sorry for all the made typos and formatting issues.

Regards again. :)

Post Reply