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"

 


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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