locked
Synctoy 2.0 - Silent Install RRS feed

  • Question

  • Hello All,
    I'm trying to create an silent installation file for 50 users (all machines are working on Windows XP - SP2) . I found below codes and it seems works but I would like read the details to be completely sure everything is alright. How can I found the readme.txt file which is mentioned in Synctoy 2.0 download page ?
    SyncToySetup.msi /passive /norestart

    and the second question is, Also I would like to create 3 standard pair for all users (My Documents , Desktop , I.E Favorites) , how can I create same pairs for all users automatically?

    and the last question , how can I easily check .NET Framework 2.0 installed or not ?

    Thank you so much in advance,
    Best Regards,
    Taner Akben
    Setup Improvements: Integrated setup with single self-extracting archive file and no extra downloads if you already have 
    .NET Framework 2.0 installed. Enabled silent install for the SyncToy Installer file
    (see readme.txt file for more information). Removed combine and
    subscribe actions.
    Thursday, August 20, 2009 10:03 AM

Answers

  • Hello All,
    I created an silent installation file which is works perfectly and would you like you can follow up below guidance to create yours.

    1) Create an folder (C:\Synctoy) and put all the necessary files to there

    2) Create a vb script to check network path is available or not.If it is available vbscript will create the necessary folders for synctoy pairs (Create_folders_on_P_Drive.vbs)

    3) Create a scheduled job with Synctoy name (do not click on "Run only if logged option" , it should be checked manually by the user after the installation) and copy that file from %systemroot%\tasks  to C:\Synctoy folder

    4) Create an shortcut for scheduled tasks and for Synctoy (Synctoy2_0) put them to c:\Synctoy folder

    5) Create a vb script (message.vbs) to inform the user about the installation status.

    6) Create an SETUP.bat file and put below commands to there

    7) Download "bat to exe converter 1.5"  and convert your setup.bat file to setup.exe

    8) Download "Create Install Free v4.14" and create your own installation file

    -------
    SETUP.BAT commands;

    :: Synctoy_Silent_Installation.bat
    :: Installation of Synctoy 2.0 Software
    ::
    cd\
    cd c:\synctoy
    SyncToySetup.msi /passive /norestart
    Synchronization.msi /passive /norestart
    ProviderServices.msi /passive /norestart

    :: Create_folders_on_P_Drive.vbs
    :: Creating Synctoy Backup and subfolder on P: drive with vb script
    ::
    cscript Create_folders_on_P_Drive.vbs


    :: Create_Folder_Pairs.bat
    :: Creating Folder Pairs in Synctoy
    ::
    cd\
    cd "%programfiles%\Synctoy 2.0"
    SyncToy -d(left="c:\Documents and Settings\%username%\Desktop",right="P:\Synctoy Backup\Desktop",name="Backup of Desktop",operation=echo)
    SyncToy -d(left="c:\Documents and Settings\%username%\My Documents",right="P:\Synctoy Backup\My Documents",name="Backup of My Documents",operation=echo,excluded="*.mp3")
    SyncToy -d(left="c:\Documents and Settings\%username%\Favorites",right="P:\Synctoy Backup\IE Favorites",name="Backup of IE Favorites",operation=echo)
    SyncToy -d(left="%programfiles%\lotus\notes\data",right="P:\Synctoy Backup\Lotus Notes",name="Backup of Lotus Notes",operation=echo,included="desktop*.*;names.nsf;*.id")


    :: Create_Scheduled_job.bat
    :: Creation of scheduled job and shortcuts for Synctoy and Scheduled Tasks folder on the desktop
    ::
    cd\
    cd c:\synctoy
    copy c:\synctoy\synctoy.job %systemroot%\tasks
    copy "c:\synctoy\SyncToy 2_0.lnk" "c:\Documents and Settings\%username%\Desktop"
    copy "c:\synctoy\Scheduled Tasks.lnk" "c:\Documents and Settings\%username%\Desktop"


    :: cscript message.vbs
    :: Installation status show message
    ::
    cscript message.vbs


    ----------
    Create_folders_on_P_Drive.vbs commands ;

    'first need to check if the P drive is available or not

    dim filesys, newfolder, objFolder, userprofile

    Set filesys = CreateObject("Scripting.FileSystemObject")
    If filesys.DriveExists("P") Then
           
    'now need to check if the p:\Synctoy Backup folder exists if not, it will create it and subfolders
    Set filesys=CreateObject("Scripting.FileSystemObject")
        If Not filesys.FolderExists("p:\Synctoy Backup") Then
            newfolder = filesys.CreateFolder ("p:\Synctoy Backup")
        End If
        If Not filesys.FolderExists("p:\Synctoy Backup\Desktop") Then
        newfolder = filesys.CreateFolder ("p:\Synctoy Backup\Desktop")
        End If
        If Not filesys.FolderExists("p:\Synctoy Backup\Lotus Notes") Then
        newfolder = filesys.CreateFolder ("p:\Synctoy Backup\Lotus Notes")
        End If
        If Not filesys.FolderExists("p:\Synctoy Backup\IE Favorites") Then
        newfolder = filesys.CreateFolder ("p:\Synctoy Backup\IE Favorites")
        End If
        If Not filesys.FolderExists("p:\Synctoy Backup\My Documents") Then
        newfolder = filesys.CreateFolder ("p:\Synctoy Backup\My Documents")
        End If
       
       
    Else
       
    End If

    ----------
    message.vbs commands ;

    dim filesys, newfolder, objFolder, userprofile

    Set filesys = CreateObject("Scripting.FileSystemObject")
    If filesys.DriveExists("P") Then

    strMbox = MsgBox("Installation has been successfully completed. Please do not forget to set your password in Scheduled Tasks.", 64, "Congratulations !")   
       
    Else

    strMbox = MsgBox("Error! You are not connected to company network or your P: drive is not mapped correctly.Please restart your computer and re-try to install the Synctoy.If you are continue to receive this message, please contact with the heldpesk to solve the P: drive connection problem.", 48, "INSTALLATION FAILED !")
       
    End If
    ----------


    I hope above informations can help to people who are planning to create their silent installation package.

    Regards,
    Taner Akben
    • Proposed as answer by Ping Lu Friday, September 11, 2009 2:41 AM
    • Edited by Taner Akben Monday, November 16, 2009 11:43 AM
    • Marked as answer by Taner Akben Monday, November 23, 2009 1:34 PM
    Wednesday, September 9, 2009 12:05 PM

All replies

  • For the first question, you may already find the answer from SyncToy 2.0 download website, http://www.microsoft.com/DownLoads/details.aspx?familyid=C26EFA36-98E0-4EE9-A7C5-98D0592D8C52&displaylang=en.

    For automaticlly creating foler pair, you can run synctoy.exe([system drive]:\Program Files\SyncToy 2.0\) from a command line. More details parameters info you can find by /? or from synctoy help .chm file "Run SyncToy from a Command Line" after installing synctoy 2.0.

    For checking if .NET Framework 2.0 installed or not, I think register could be an option.


    Thanks,
    Ping
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, August 25, 2009 8:22 AM
  • Hello Ping,
    Firstly thanks a lot your for your response. Actually, I checked that webpage but have no readme.txt file in there nor in the setup file ?
    Tuesday, August 25, 2009 11:37 AM
  • You'r welcome, it is my pleasure.

    No, I did not aware of the readme.txt file. But about silent install you can find the info at this link of Instructions then Features: section.

    - SyncToy supports quiet installation by an Administrator user on the target machine. The steps for this are as follows. Please download the self-extracting archive executable and save locally. Extract files from the archive to a target directory. You'll notice 3 MSI files in the set of extracted files. Each of the 3 MSIs can be run in quiet mode using the MSI command line utility (msiexec.exe). The order in which the MSIs need to be installed is: Synchronization.msi, ProviderServices.msi, SyncToySetup.msi.

    Thanks,
    Ping

    This posting is provided "AS IS" with no warranties, and confers no rights.
    • Proposed as answer by Ping Lu Thursday, August 27, 2009 6:34 AM
    Wednesday, August 26, 2009 7:32 AM
  • Hello again,

    Yes I saw that explanation but it's still not clear as I do not know what does doing these msi files ?
    Probably it should be explained as detailed in readme.txt file but the file is not exist on the webpage.

    I found this code from an different website "SyncToySetup.msi /passive /norestart" but I'm not sure , is it enough or should I create an batch file also for other files ( Synchronization.msi, ProviderServices.msi ) , do you have any idea ?

     

    Wednesday, August 26, 2009 2:59 PM

  • The code for setting up Synctoy silently should be ok.
    Just like the instruction says, The order in which the MSIs need to be installed is: Synchronization.msi, ProviderServices.msi, SyncToySetup.msi, as those two msi files will install the dependencies for synctoy.exe.

    The silent install codes also could be used for those MSI. Create an batch file should be a good approach.


    Thanks,
    Ping


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Thursday, August 27, 2009 6:34 AM
  • Hello All,
    I created an silent installation file which is works perfectly and would you like you can follow up below guidance to create yours.

    1) Create an folder (C:\Synctoy) and put all the necessary files to there

    2) Create a vb script to check network path is available or not.If it is available vbscript will create the necessary folders for synctoy pairs (Create_folders_on_P_Drive.vbs)

    3) Create a scheduled job with Synctoy name (do not click on "Run only if logged option" , it should be checked manually by the user after the installation) and copy that file from %systemroot%\tasks  to C:\Synctoy folder

    4) Create an shortcut for scheduled tasks and for Synctoy (Synctoy2_0) put them to c:\Synctoy folder

    5) Create a vb script (message.vbs) to inform the user about the installation status.

    6) Create an SETUP.bat file and put below commands to there

    7) Download "bat to exe converter 1.5"  and convert your setup.bat file to setup.exe

    8) Download "Create Install Free v4.14" and create your own installation file

    -------
    SETUP.BAT commands;

    :: Synctoy_Silent_Installation.bat
    :: Installation of Synctoy 2.0 Software
    ::
    cd\
    cd c:\synctoy
    SyncToySetup.msi /passive /norestart
    Synchronization.msi /passive /norestart
    ProviderServices.msi /passive /norestart

    :: Create_folders_on_P_Drive.vbs
    :: Creating Synctoy Backup and subfolder on P: drive with vb script
    ::
    cscript Create_folders_on_P_Drive.vbs


    :: Create_Folder_Pairs.bat
    :: Creating Folder Pairs in Synctoy
    ::
    cd\
    cd "%programfiles%\Synctoy 2.0"
    SyncToy -d(left="c:\Documents and Settings\%username%\Desktop",right="P:\Synctoy Backup\Desktop",name="Backup of Desktop",operation=echo)
    SyncToy -d(left="c:\Documents and Settings\%username%\My Documents",right="P:\Synctoy Backup\My Documents",name="Backup of My Documents",operation=echo,excluded="*.mp3")
    SyncToy -d(left="c:\Documents and Settings\%username%\Favorites",right="P:\Synctoy Backup\IE Favorites",name="Backup of IE Favorites",operation=echo)
    SyncToy -d(left="%programfiles%\lotus\notes\data",right="P:\Synctoy Backup\Lotus Notes",name="Backup of Lotus Notes",operation=echo,included="desktop*.*;names.nsf;*.id")


    :: Create_Scheduled_job.bat
    :: Creation of scheduled job and shortcuts for Synctoy and Scheduled Tasks folder on the desktop
    ::
    cd\
    cd c:\synctoy
    copy c:\synctoy\synctoy.job %systemroot%\tasks
    copy "c:\synctoy\SyncToy 2_0.lnk" "c:\Documents and Settings\%username%\Desktop"
    copy "c:\synctoy\Scheduled Tasks.lnk" "c:\Documents and Settings\%username%\Desktop"


    :: cscript message.vbs
    :: Installation status show message
    ::
    cscript message.vbs


    ----------
    Create_folders_on_P_Drive.vbs commands ;

    'first need to check if the P drive is available or not

    dim filesys, newfolder, objFolder, userprofile

    Set filesys = CreateObject("Scripting.FileSystemObject")
    If filesys.DriveExists("P") Then
           
    'now need to check if the p:\Synctoy Backup folder exists if not, it will create it and subfolders
    Set filesys=CreateObject("Scripting.FileSystemObject")
        If Not filesys.FolderExists("p:\Synctoy Backup") Then
            newfolder = filesys.CreateFolder ("p:\Synctoy Backup")
        End If
        If Not filesys.FolderExists("p:\Synctoy Backup\Desktop") Then
        newfolder = filesys.CreateFolder ("p:\Synctoy Backup\Desktop")
        End If
        If Not filesys.FolderExists("p:\Synctoy Backup\Lotus Notes") Then
        newfolder = filesys.CreateFolder ("p:\Synctoy Backup\Lotus Notes")
        End If
        If Not filesys.FolderExists("p:\Synctoy Backup\IE Favorites") Then
        newfolder = filesys.CreateFolder ("p:\Synctoy Backup\IE Favorites")
        End If
        If Not filesys.FolderExists("p:\Synctoy Backup\My Documents") Then
        newfolder = filesys.CreateFolder ("p:\Synctoy Backup\My Documents")
        End If
       
       
    Else
       
    End If

    ----------
    message.vbs commands ;

    dim filesys, newfolder, objFolder, userprofile

    Set filesys = CreateObject("Scripting.FileSystemObject")
    If filesys.DriveExists("P") Then

    strMbox = MsgBox("Installation has been successfully completed. Please do not forget to set your password in Scheduled Tasks.", 64, "Congratulations !")   
       
    Else

    strMbox = MsgBox("Error! You are not connected to company network or your P: drive is not mapped correctly.Please restart your computer and re-try to install the Synctoy.If you are continue to receive this message, please contact with the heldpesk to solve the P: drive connection problem.", 48, "INSTALLATION FAILED !")
       
    End If
    ----------


    I hope above informations can help to people who are planning to create their silent installation package.

    Regards,
    Taner Akben
    • Proposed as answer by Ping Lu Friday, September 11, 2009 2:41 AM
    • Edited by Taner Akben Monday, November 16, 2009 11:43 AM
    • Marked as answer by Taner Akben Monday, November 23, 2009 1:34 PM
    Wednesday, September 9, 2009 12:05 PM
  • Thanks for this great share, Taner Akben!


    Thanks,
    Ping


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Friday, September 11, 2009 2:41 AM