I've an application which I was unable to do. Here below is the situation,

They gave me a reg file, a bat file and 3 shortcuts.

first we need to merge the regfile and then we need to run the .bat file and then we need to copy the 3 shortcuts to desktop.

registry file consists of hku keys and i have taken first capture and merged that registry key and taken 2nd capture. But, the keys are not captured.

So i created a batch file and used reg import command. the registry keys are merged but when i delete the keys using the reg delete command it shows an error stating that the specified path was not found.

when i uninstall the msi among the 3 shortcuts 2 are removed and one remains like that. when i logoff and logon then the other shorctut is removed.

Please help me how to get it done. I'm using adminstudio 11.5

0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



Are you trying to repackage this ?

why not open Installshield and just add this information directly..?

Answered 05/15/2013 by: jaybee96
Red Belt

  • you mean to create dummy msi and import ..
  • create MSI ( ISM) from scratch and import registry info, batch activities and shortcuts.
  • This content is currently hidden from public view.
    Reason: Member is not approved yet
    For more information, visit our FAQ's.
  • Jaybee, how to import the batch activities?
  • first of all , what does the batch do?
    • Here is my batch file,

      @echo off

      NET USE R: \\hacsstc089\dfs /PERSISTENT:YES

      reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoClose" /t "REG_DWORD" /d "1" /f
      reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system" /v "ForceStartMenuLogOff" /t "REG_DWORD" /d "1" /f
      reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableLockWorkStation" /t "REG_DWORD" /d "1" /f

      xcopy /q /i /e /y R:\Apps\WorkstationShortcuts "C:\Users\Public\Desktop" /f
  • net use is only needed for the copy of the shortcuts ... so you can ignore this
    Registry keys can be manually added to the MSI
    Shortcuts can be manually added to the MSI

Please log in to comment
Answer this question or Comment on this question for clarity



Good grief...all of that registry activity should be done via Group Policy! The "Policies" sub-key name is a bit of a give-away!!!

Answered 05/15/2013 by: VBScab
Red Belt

Please log in to comment