Arbitrary shortcut in a cab

Maybe a wierd solution but how ever.
Trying to create a shortcut in CAB #1 that targets a file packed in CAB #2.
Cabwizard wount let it pass because "... there is no matching target file ...".
Is it possible to create an arbitrary shortcut in a cab
For example, if I want to create my own shortcut to the calculator on a Pocket PC device it could look something like this in an inf file:

[MyCalcShortcut]
"Abacus",0,"%CE2%\calc.exe",%CE17%

[DefaultInstall]
CEShortcuts = MyCalcShortcut

This would create a shortcut in the start manu called "Abacus" pointing on calc.exe under \Windows.
However this doesn't work ... or is there a way

/regs jutsi


Answer this question

Arbitrary shortcut in a cab

  • redplanet

    Workaround for this:

    Create your own link file, for example a file called Abacus.lnk that contains:
    #46"\Windows\calc.exe"

    Add the file in your cab as other files but copy it into your device start menu:
    [CopyToStartMenu]
    "Abacus.lnk"

    [DestinationDirs]
    CopyToStartMenu = 0,%CE17%

    [DefaultInstall]
    CopyFiles = CopyToStartMenu

    This way you will have your own shortcut for calc called "Abacus" (as in the name of the file you just copied).

    /regs jutsi


  • Arbitrary shortcut in a cab