If you want to customize the installer for Windows Mobile applications, you have to create C++ code.
I wanted to rename a file before the uninstall of a a previous version started.
codeUNINSTALL_INIT Uninstall_Init(HWND hwndParent, LPCTSTR pszInstallDir)
{
int result;
char oldname[] ="oldname.txt";
char newname[] ="newname.txt";
result = rename( oldname , newname );
return codeUNINSTALL_INIT_CONTINUE;
}
I was looking to add a file rename call in the Uninstall_Init, just a tweek from your coding example.
But I try to compile it I get
error C3861: 'rename': identifier not found
The includes in the .cpp file are:
#include <windows.h>
#include "stdio.h"
#include "ce_setup.h"
I haven't done C++ in 10 years and I'm pretty lost, I've searched/googled all day with no luck. Can anyone help me?
thanks,
Brian
I wanted to rename a file before the uninstall of a a previous version started.
codeUNINSTALL_INIT Uninstall_Init(HWND hwndParent, LPCTSTR pszInstallDir)
{
int result;
char oldname[] ="oldname.txt";
char newname[] ="newname.txt";
result = rename( oldname , newname );
return codeUNINSTALL_INIT_CONTINUE;
}
I was looking to add a file rename call in the Uninstall_Init, just a tweek from your coding example.
But I try to compile it I get
error C3861: 'rename': identifier not found
The includes in the .cpp file are:
#include <windows.h>
#include "stdio.h"
#include "ce_setup.h"
I haven't done C++ in 10 years and I'm pretty lost, I've searched/googled all day with no luck. Can anyone help me?
thanks,
Brian