Author Topic: Install all in One and run all fixes silent/unattended  (Read 16387 times)

0 Members and 1 Guest are viewing this topic.

Offline bdp123

  • Newbie
  • *
  • Join Date: Oct 2014
  • Posts: 8
  • Karma: 0
    • View Profile
Install all in One and run all fixes silent/unattended
« on: October 29, 2014, 08:32:24 am »
Hi,

Is there any ways to install Windows Repair (All in One) silent and then run all fixes silent/unattended?

Best regards
Bdp123

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #1 on: October 29, 2014, 01:25:19 pm »
You set what repairs you want in the program and it saves it in the setting.ini file and then you can run the program with the /silent command. :wink:

Shane

Offline bdp123

  • Newbie
  • *
  • Join Date: Oct 2014
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #2 on: October 30, 2014, 12:56:11 am »
Hi Shane,

Ok, so i run the windows repair AIO portable and choose the fix'es i need and sofort.
But does the settings.ini then get loaded and all runs silent with the batchfile command for silent.

start "C:\Folder\Repair_Windows.exe" /Silent

?

Offline bdp123

  • Newbie
  • *
  • Join Date: Oct 2014
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #3 on: October 30, 2014, 03:43:21 am »
Hi,

I managed to work this out myself and now the install.bat calls it silent, but there is another problem now.
The "yes/no" box diplays when running silent. This is not silent, and how to i get the commands to either surpress the promt or better, answer YES to it?

Screenshot attached.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #4 on: October 30, 2014, 12:33:25 pm »
Two ways to keep that box from coming up.

1. Take the check off when the box pops up, which disables that system wide.
2. Go the the file in the files folder, right click on it and go to properties and you should have a unblock button.hit that and you should be good as well. :wink:

Shane

Offline bdp123

  • Newbie
  • *
  • Join Date: Oct 2014
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #5 on: October 31, 2014, 03:38:44 am »
Hi,

What file containing the "button.hit" do you exactly mean? I dont quite understand...
And as i see it, these 2 solutions are both windows based and are settings which is not set by the silent run.

I want to make the silent installation completely SILENT.. The current setup is not silent and only a automatication of the selected fixes applied.

This dont work since i want to puch the silent installation out through GPO or SCCM and therefore there must be NO userinvention, like run exe-warnings etc.

Regards

Offline bdp123

  • Newbie
  • *
  • Join Date: Oct 2014
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #6 on: November 02, 2014, 11:26:21 pm »
Hi Shane,

Do you have a solution to this?... I need to have the silent install surpress the exe-warning totally and without any userintervention
on NEW machines.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #7 on: November 04, 2014, 11:37:52 am »
Quote
hat file containing the "button.hit" do you exactly mean? I dont quite understand...

Just bad typing, should have had a space after the period :-)
2. Go the the file in the files folder, right click on it and go to properties and you should have a unblock button. Hit that and you should be good as well.

Quote
Do you have a solution to this?... I need to have the silent install surpress the exe-warning totally and without any userintervention
Program doesnt control that, windows does. You also dont want to run th program from a network path, the files need to be on the system because windows security doesnt let certain things happen from network drives.

My program can run automatically but it isnt hidden and isnt designed to be. And like I said with the file warning, that is windows. Either turn off that feature in windows or right click on the files and go to properties and hit the unblock button.

Shane

Offline bdp123

  • Newbie
  • *
  • Join Date: Oct 2014
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #8 on: November 04, 2014, 11:29:44 pm »
Hi Shane,

I managed to solve it myself. I made a powershell command, where i unblocked all files used.

Its working now and thats great. :)

For refference, you can see the full script here:
----------------------------------------------------------
New-Item -ItemType directory -Path C:\Winrepair
$source = "http://support.fragt.dk/Programmer/winrepair/Winrepairfull.zip"
$Filename = [System.IO.Path]::GetFileName($source)
$dest = "C:\Winrepair\$Filename"
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($source, $dest)
$path = "C:\Winrepair\Winrepairfull.zip"
$destination = “C:\Winrepair\”
$shell_app= New-Object -com shell.application
$files = Get-ChildItem -Path $path -filter *.zip -recurse
foreach($file in $files) {
  $zip_file = $shell_app.namespace($file.FullName)
  $copyHere = $shell_app.namespace($destination)
  $copyHere.Copyhere($zip_file.items())
}
Get-Item C:\Winrepair\Winrepair\* | Unblock-File
Start-Sleep -s 1
echo y| C:\Winrepair\Winrepair\Repair_Windows.exe /silent
Start-Sleep -s 1
\\support01\wwwroot\Programmer\winrepair\Log\Log.bat
--------------------------------------------------------------------------

Let me know if you need any comments.

Thx

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #9 on: November 04, 2014, 11:33:34 pm »
Very nice, I didnt know there was a power shell command to unblock a file, I have been using the sysinternals exe for that this whole time lol
http://technet.microsoft.com/en-us/sysinternals/bb897440.aspx

Always nice when there is a built in way to do it.

In fact, this would be a good thing to add to the program to have it unblock the files when it is downloaded from the zip. Wonder if there is an api way to do it, then I could have the program do it at startup :-)

Shane

Offline bdp123

  • Newbie
  • *
  • Join Date: Oct 2014
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #10 on: November 04, 2014, 11:50:35 pm »
Yup, i know.. I looked at sysinternals but this is a "oldschool" way to do it...

I wanted a fully intergrated solution.

You could call the powershell command at startup, so ALL exe, reg etc files used by your program is unblocked.
or make it an optional feature...

Offline bdp123

  • Newbie
  • *
  • Join Date: Oct 2014
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #11 on: November 04, 2014, 11:51:51 pm »
Also, with powerGUI from DELL, you can compile the powershell unblock cmdlet to an .exe file...

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #12 on: November 04, 2014, 11:52:10 pm »
Yeah, I am going to make a note to have it do that before running the repairs, that way users who download the zip file wont have that problem, thanks for finding the command for me :-)

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #13 on: November 10, 2014, 06:48:47 pm »
Working on the next update to the windows repair and I want to add the command to unblock the files, but it doesnt work in powershell on xp, looks like it is a new command. I will see if I can find any API and have the program do it instead :-)

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #14 on: November 10, 2014, 07:19:51 pm »
Good news I found the api to do it and it is very simple. So in the next update the program will auto remove the block :-)

It is just the deletefile api lol

Quote
Public Sub DeleteFileZoneIdentifier(sFileSpec As String)
On Error Resume Next
'delete the Zone.Identifier from the files in the files fodler so it doesnt popup a warning when running repairs.
    Call DeleteFile(sFileSpec & ":Zone.Identifier")
    DoEvents
End Sub

So in the next update you wont need to use powershell to do it as the program will do it for you :-)

Shane

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #15 on: November 11, 2014, 01:13:01 am »
I didn't think you could run WR without interaction given that it's best to back up and the program prompts for a chkdsk before proceeding as well as booting in a clean boot ?

Can't remember now how much of the computer's resources it can take up, but at times that could impact upon performance when doing something else ?


Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #16 on: November 11, 2014, 01:16:03 am »
The program has a check box to auto make a registry backup before the repairs, it even does it when running in auto mode :-)

Shane

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #17 on: November 11, 2014, 03:49:43 am »
The program has a check box to auto make a registry backup before the repairs, it even does it when running in auto mode :-)

Shane

Ah - Right, but what is the max demand it could have on resources ?

I think I would still prefer to see what it is doing.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Install all in One and run all fixes silent/unattended
« Reply #18 on: November 11, 2014, 05:02:50 am »
You do see what it is doing, it doesnt run hidden. And the reg backup does it through the API not VSS just in case VSS is not working, and the API is faster.

Shane