Wednesday, April 24, 2013

Running SDB files in Custom Action

Running SDB files in Custom Action:

i. Select New EXE -> Stored in Binary Table.

ii. Browse the cmd file in Executable file name (C:\windows\system32\cmd.exe)

iii. Use the command: /C sdbinst.exe -q "[INSTALLDIR]<filename>.sdb"

iv. Select the condition and sequence (we can select ‘After InstallFiles’ usually).

v. To uninstall: /C sdbinst.exe -q -u "[WindowsFolder]AppPatch\Custom\Custom64\{fe973ca9-a291-4d84-8eed-4715ef0af471}.sdb"

To Remove the Service via batch file

To Remove the Service:

In CMD: sc delete "<Service Name>"

Response File Creation for EXE:

Response File Creation:

"C:\LanSafe Installer\Setup.exe" -r -f1C:\LanSafeSilentFile.iss

For Installing:

"C:\LanSafe Installer\Setup.exe" -s -f1C:\LanSafeSilentFile.iss

Permissions

 
Select SETACL’s:

-silent -on "HKEY_CLASSES_ROOT\FareMaintenance.Document" -ot REG -actn ace -ace n:Users;P:FULL

-silent -on "[ProgramFilesFolder]Decision Support" -ot FILE -actn ace -ace n:Users;P:WRITE -ace n:Users;P:FULL

Select CACL’s:


"[ProgramFilesFolder]FileName" /T /E /G Users:F