Jump to content

Simple inf that unpack a cab and copy its files to eg. program files


Recommended Posts

Posted

I have headache to deeply understand how to copy files from inside an cab to program files. My inf create the shortcut correctly and when I add the CopyFiles relevant directives I was asked for .lnk file. I want a simple inf example that can copy files from inside a cab file to the Program Files\myapp1 folder and that I got so far (missing the CopyFiles, DestinationDirs and the rest copy directives)

[Version]
Signature = $Windows NT$

[DefaultInstall]
OptionDesc   = "my app1 program"
Tip          = "whatever"
Modes        = 0,1,2,3
AddReg       = MyCustomApp1Reg
ProfileItems = myapp1

[MyCustomApp1Reg]
HKCU,"Software\Myapp1\SomeTweakedOption","Option XX",0x10001,2

[myapp1]
Name       = myapp1
CmdLine    = 16422,%Myapp1FolderUnderPrgFiles%,myapp1.exe
SubDir     = %Myapp1FolderUnderPrgFiles%
WorkingDir = 24
InfoTip    = just a test for myapp1

[Strings]
Myapp1FolderUnderPrgFiles = "myapp1 folder"

 


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...