IR5 - The Official Windows 7 Rearm Solution

Discussion in 'MDL Projects and Applications' started by timesurfer, May 10, 2010.

Thread Status:
Not open for further replies.
  1. secr9tos

    secr9tos MDL Addicted

    Jul 28, 2009
    997
    133
    30
    #121 secr9tos, May 22, 2010
    Last edited: May 22, 2010
    I think it would be easier doing the mod 1-time, export it and import at user-pc
     
  2. shiki

    shiki MDL Novice

    Nov 10, 2009
    35
    1
    0
    Is it a problem if I set it to 25 days?
     
  3. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    The program uses schtasks, but an option in the advanced tab needs to checked, which is not possible from the command-line tool.

    @shiki

    It won't be a problem, you can create your own custom defined tasks for rearm.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    In the .bat file #1 at the bottom of script is the 29 day setting just change to 25 and save then uninstall then install again but I recommend actually repeating process since the RE action needs to be in sinc with task so after 25 day adjustment just start form scratch:)
     
  5. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    Have you read this message before? If yes, does your program make a backup of the registry before deleting it?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #126 timesurfer, May 22, 2010
    Last edited: May 22, 2010
    (OP)
    Are you asking me MD? I have not seen that warning yet. Everything is working fine whether I install or uninstall and still no nag
     
  7. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    Yeah, I was asking you. I don't know how I forgot the first rule of registry editing (always make a backup). Maybe I use too much of ccleaner and I always skip backing up registry.

    Do you want this option in your program?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Hazar

    Hazar MDL Guru

    Jul 29, 2009
    2,507
    458
    90
    Just a suggestion why not use an XML so you can set all the advanced options?
     
  9. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    It can be done, but the xml file needs to be edited by the user to change the start date and user account name.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #130 timesurfer, May 22, 2010
    Last edited: May 22, 2010
    (OP)
    If you feel it will benefit us all then sure. Is it in yours as of now? What are the repercussions of not doing this? I haven't heard any complaints yet about the program. Are we waiting for a certain error or complaint? All through the guide we also did not receive any complaints. Is this going to create any problems with users or create a complicated thing for user to do or will it be automatic and silent
     
  11. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    #131 MasterDisaster, May 22, 2010
    Last edited: May 22, 2010
    If some brilliant user goes and uses this program in Vista or Server 2008, he will definitely come back and blame you for his fault.

    It happened to me once, when a user went and ran a program in XP which was meant only to be used with 7 Starter edition.

    As of now I haven't added it in my batch, but will do so.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #132 timesurfer, May 22, 2010
    Last edited: May 22, 2010
    (OP)
    Yep sounds like good idea...lol Will it run silent or does user have to do extra stuff since our programs are so simple to use would be nice to keep most things out of reach for beginners.

    I think 7ekn00 had error checking in his .ahk script for this "attempting to use it for non-win 7 users" problem. Do you still have his script I sent you once. Would you like me to send it to you?
     
  13. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    It will create a backup_WPA.reg file in C: drive.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #134 timesurfer, May 22, 2010
    Last edited: May 22, 2010
    (OP)
    Cool and how will user if they need to use that backup will it be applied. Manually? What's the Interface for that?

    With install it creates back up? With uninstall it deletes back up and returns reg to original state?
     
  15. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    #135 MasterDisaster, May 22, 2010
    Last edited: May 22, 2010
    Yes it needs to be done manually but similar to the reset stuff.

    Boot into WinRE, Open Command Prompt
    Type reg import C:\backup_WPA.reg

    No, the reg entries cannot be imported back in Windows, same as it cannot be deleted.

    Uninstall will just delete the file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #136 timesurfer, May 22, 2010
    Last edited: May 22, 2010
    (OP)
    So if user uses this for wrong OS we will have instructions on how to repair. I should put on first page and maybe instructions? I will need help with how to present this problem solving. Can we put into this script "simple will not install if using vista. XP or non R2 Server cmd" that cannot be bi-passed? As to avoid this problem outright?
     
  17. Hazar

    Hazar MDL Guru

    Jul 29, 2009
    2,507
    458
    90
    Nope, I've successfully done it without end user interaction.

    If you use the SYSTEM account, it can be done like that. also the start time can be edited on the fly with a batch file using a copy /b
     
  18. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    @Hazar

    No offence, but i don't want to do it that way, if timesurfer wants he can add it to his program.

    The "Automatically run task if schedule is missed" is not that good as it sounds.

    @timesurfer

    Yes a simple version check can prevent this problem outright.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #139 timesurfer, May 22, 2010
    Last edited: May 22, 2010
    (OP)
    Is this something that interests you in creating the code for, to avoid needing to do reg back up?

    Would you or Hazar like to see 7ekn00's script? I think I sent it to you both when 7ekn00 gave me permission to share it

    I think it checks for other OS's and other error checking?

    It would be a plus for our programs to be restricted to only OS's listed on my first page:)
     
  20. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    #140 MasterDisaster, May 22, 2010
    Last edited by a moderator: Apr 20, 2017
    Add these two lines to the second line of your install file.

    Code:
    REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion | FINDSTR 6.1 >NUL
    IF ERRORLEVEL 1 echo Supports Windows 7 and Server 2008 R2 only & goto end
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...